|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-24 20:13 UTC] sniper@php.net
[2002-07-24 21:27 UTC] kehchen at cyber-village dot net
[2002-07-25 01:35 UTC] derick@php.net
[2002-09-11 11:45 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 22:00:02 2025 UTC |
I tried the php4-STABLE-200207240000 snapshot version in Solaris 8 with Apache 2.0.39. I have tried both apache2filter & cgi method, different result in below example: $randval = rand(1,1000); echo $randval . "\n"; in "cgi" mod, the result is always correct, return number between 1 - 1000, in "apache2filter" mod, the result always return 1. After doing some debug, found the problem in "rand.c" under "php_rand" function. In "apache2filter" mod, "ZTS" is defined and always call php_rand_r(). If I comment out and prevent calling php_rand_r(), the result is correct.