#31453 [Opn]: array_rand() is not returning random values

From: Date: Mon, 10 Jan 2005 21:04:07 +0000
Subject: #31453 [Opn]: array_rand() is not returning random values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71764@lists.php.net to get a copy of this message
 ID:               31453
 Updated by:       jed@php.net
 Reported By:      cdturri at hotmail dot com
 Status:           Open
 Bug Type:         Arrays related
 Operating System: Windows 2000 Advanced Server SP4
 PHP Version:      5.0.3
 New Comment:

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?)


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

[2005-01-10 16:29:27] nlopess@php.net

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.

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

[2005-01-10 16:11:51] cdturri at hotmail dot com

OK guys,

I just had the chance to test it under Linux and PHP 5 and the bug does
NOT occur. Here are the headers to confirm product versions:

 3 Server: Apache/2.0.52 (Unix) mod_perl/1.99_17 Perl/v5.8.4
mod_ssl/2.0.52 Open
SSL/0.9.7d PHP/5.0.3 DAV/2

Could anyone from the Dev team be so kindly to test it under Windows?

Thanks,
Christian

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

[2005-01-10 14:41:14] sniper@php.net

I'm using Linux.. :)


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

[2005-01-10 11:21:46] cdturri at hotmail dot com

Hi Sniper,

I just tested it on a different Windows PC with a brand new install of
PHP using your CVS link. The bug stills occurs. HTTP headers to verify
versions:

 3 Server: Apache/2.0.52 (Win32) PHP/5.0.4-dev
 4 X-Powered-By: PHP/5.0.4-dev

I compared my PHP.ihi with the php.ini-recommended that came with the
CVS build. Several differences were found, however using
php.ini-recommended as my PHP.ini with no changes still produced the
bug. Are you using my test.php with the cache.ini I am using in my
sample? I have the impression that is related to the multidimension
array function. 

Regards,
Christian

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

[2005-01-10 02:20:25] sniper@php.net

Please try using this CVS snapshot:

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

I can NOT reproduce this.


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

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


Thread (24 messages)

« previous php.bugs (#71764) next »