From 947cebee3cf5ca50d6b3333fd9d0e364c4d32927 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 25 Nov 2007 15:56:47 +0000 Subject: [PATCH] MFB: Fixed bug #43386 (array_globals not reset to 0 properly on init) --- NEWS | 1 + ext/standard/array.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)); } /* }}} */ -- 2.50.1