From: Ilia Alshanetsky Date: Sun, 25 Nov 2007 15:56:47 +0000 (+0000) Subject: MFB: Fixed bug #43386 (array_globals not reset to 0 properly on init) X-Git-Tag: php-5.2.6RC1~290 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=947cebee3cf5ca50d6b3333fd9d0e364c4d32927;p=php MFB: Fixed bug #43386 (array_globals not reset to 0 properly on init) --- diff --git a/NEWS b/NEWS index 6fb392b6e8..19e1ff5ed3 100644 --- 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) diff --git a/ext/standard/array.c b/ext/standard/array.c index 478a441acf..9ebb8f1c29 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -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)); } /* }}} */