ID:               31453
 User updated by:  cdturri at hotmail dot com
 Reported By:      cdturri at hotmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Arrays related
 Operating System: Win32
 PHP Version:      5CVS (2005-01-10)
 New Comment:

OK, done my homework. Tested under IIS and Apache on Windows with the
CVS builds provided by sniper (PHP4). Bug appeared on BOTH cases. Here
are the headers:

 2 Server: Microsoft-IIS/5.0
 3 Date: Mon, 10 Jan 2005 22:45:26 GMT
 4 X-Powered-By: ASP.NET
 6 X-Powered-By: PHP/4.3.11-dev

And:

 2 Date: Mon, 10 Jan 2005 22:49:21 GMT
 3 Server: Apache/2.0.52 (Win32) PHP/4.3.11-dev
 4 X-Powered-By: PHP/4.3.11-dev

As my previous comment I saw no needs to test it under PHP4 with the
latest CVS builds in Linux since the bug did not appear on PHP 4.3.9
under Linux. So, we have nailed down the issue to this:

- Bug appears on a Windows System running either IIS or Apache. 
- Bug appears on both PHP4 and PHP5 latest CVS builds. 

Couple of more findings:

- The first key that array_rand() returns on the first run after the
Web Server is restarted seems to be random.
- Decreasing the number of keys on the INI file seems to increase the
subset of keys that array_rand() incorrectly returns as random keys. 
- Inversely, increasing the number of keys on the INI file seems to
decrease the subset of keys that array_rand() incorrectly returns as
random keys.

All yours guys!


Previous Comments:
------------------------------------------------------------------------

[2005-01-10 22:40:50] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2005-01-10 22:28:57] cdturri at hotmail dot com

Hi,

Tested under IIS 5.0 and the bug is indeed present. Headers:

 1 HTTP/1.1 200 OK
 2 Server: Microsoft-IIS/5.0
 3 Date: Mon, 10 Jan 2005 21:36:20 GMT
 4 X-Powered-By: ASP.NET
 5 Content-type: text/html
 6 X-Powered-By: PHP/5.0.3

Thanks,
Christian

------------------------------------------------------------------------

[2005-01-10 22:20:05] [EMAIL PROTECTED]

Also, is this a Windows-only problem with ZTS? Because apparently, it
works under Apache 2 on Linux without a problem. Can someone reproduce
this bug on anything but Win32? Is this limited to Apache2, or is it
present in IIS as well?

------------------------------------------------------------------------

[2005-01-10 22:04:06] [EMAIL PROTECTED]

Present in my Web configuration.
http://jed.homedns.org/test.php

Apache/2.0.52, PHP/5.0.3
Microsoft Windows XP [Version 5.1.2600]

However, *NOT* present in command line. (ZTS?)

------------------------------------------------------------------------

[2005-01-10 16:29:27] [EMAIL PROTECTED]

I can confirm this problem.

Maybe the problem is just when running in ZTS mode, as it uses a
different seed generator.

However I don't time to trace the problem now.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31453

-- 
Edit this bug report at http://bugs.php.net/?id=31453&edit=1

Reply via email to