ID: 31453
Updated by: sniper@php.net
Reported By: cdturri at hotmail dot com
-Status: Verified
+Status: Feedback
Bug Type: Arrays related
Operating System: win32 only
PHP Version: 5CVS, 4CVS (2005-01-10)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-01-11 00:54:33] sniper@php.net
I can't reproduce this with Apache2-worker either so it's not ZTS
problem. Just some weird windows bug again.
------------------------------------------------------------------------
[2005-01-10 23:53:49] cdturri at hotmail dot com
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!
------------------------------------------------------------------------
[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] jed@php.net
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] jed@php.net
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?)
------------------------------------------------------------------------
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