cvs: php-src(PHP_4_3) / NEWS /ext/standard basic_functions.c

From: Date: Mon, 19 Jan 2004 19:07:09 +0000
Subject: cvs: php-src(PHP_4_3) / NEWS /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25760@lists.php.net to get a copy of this message
sniper Mon Jan 19 14:07:09 2004 EDT Modified files: (Branch: PHP_4_3) /php-src NEWS /php-src/ext/standard basic_functions.c Log: - Fixed bug #26381 (rand() without srand() doesn't work with certain php.ini) # This was no prob in PHP5, some memory corruption / leaks, whatever fixed # in ZE2 but not in ZE1? http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.533&r2=1.1247.2.534&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.533 php-src/NEWS:1.1247.2.534 --- php-src/NEWS:1.1247.2.533 Mon Jan 19 13:42:07 2004 +++ php-src/NEWS Mon Jan 19 14:06:32 2004 @@ -14,6 +14,8 @@ - Fixed bug #26896 (ext/ftp does not work as shared extension). (Jani) - Fixed bug #26772, #26967 (file operations return NULL instead of FALSE). (Wez, Ilia) +- Fixed bug #26381 (rand() without srand() doesn't work with certain php.ini). + (Jani) - Fixed bug #21513 (shutdown functions not executed if timed out). (Zeev) 12 Jan 2004, Version 4.3.5RC1 http://cvs.php.net/diff.php/php-src/ext/standard/basic_functions.c?r1=1.543.2.30&r2=1.543.2.31&ty=u Index: php-src/ext/standard/basic_functions.c diff -u php-src/ext/standard/basic_functions.c:1.543.2.30 php-src/ext/standard/basic_functions.c:1.543.2.31 --- php-src/ext/standard/basic_functions.c:1.543.2.30 Mon Dec 22 11:00:54 2003 +++ php-src/ext/standard/basic_functions.c Mon Jan 19 14:07:08 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.543.2.30 2003/12/22 16:00:54 iliaa Exp $ */ +/* $Id: basic_functions.c,v 1.543.2.31 2004/01/19 19:07:08 sniper Exp $ */ #include "php.h" #include "php_streams.h" @@ -970,6 +970,9 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p TSRMLS_DC) { + BG(rand_is_seeded) = 0; + BG(mt_rand_is_seeded) = 0; + BG(next) = NULL; BG(left) = -1; BG(user_tick_functions) = NULL;

« previous php.cvs (#25760) next »