]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #43386 (array_globals not reset to 0 properly on init)
authorIlia Alshanetsky <iliaa@php.net>
Sun, 25 Nov 2007 15:56:47 +0000 (15:56 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 25 Nov 2007 15:56:47 +0000 (15:56 +0000)
NEWS
ext/standard/array.c

diff --git a/NEWS b/NEWS
index 6fb392b6e8e60483faa793620c721f18995d9c52..19e1ff5ed3900909e8920f91cf48fbafa5a09cd9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2008, PHP 5.2.6
+- Fixed bug #43386 (array_globals not reset to 0 properly on init). (Ilia)
 - Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone). (Ilia)
 - Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL).
   (Jani)
index 478a441acf965abc9d2d8aaa5f81e8312defef50..9ebb8f1c2976f44cf95b564476f7f797d82c909e 100644 (file)
@@ -102,7 +102,7 @@ ZEND_DECLARE_MODULE_GLOBALS(array)
  */
 static void php_array_init_globals(zend_array_globals *array_globals)
 {
-       memset(array_globals, 0, sizeof(array_globals));
+       memset(array_globals, 0, sizeof(zend_array_globals));
 }
 /* }}} */