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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php