From: Antony Dovgal Date: Tue, 25 Jul 2006 10:36:19 +0000 (+0000) Subject: MFH: check g_hash for NULL before resetting it X-Git-Tag: php-5.2.0RC2~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5f71c36af8e70acea9e0b053aa1bfb635a7e455;p=php MFH: check g_hash for NULL before resetting it --- diff --git a/ext/filter/filter.c b/ext/filter/filter.c index 815621bda5..05bdfc6a8e 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -693,7 +693,9 @@ PHP_FUNCTION(input_get_args) RETURN_FALSE; } else { g_hash = HASH_OF(array_ptr); - zend_hash_internal_pointer_reset_ex(g_hash, &pos); + if (g_hash) { + zend_hash_internal_pointer_reset(g_hash); + } array_init(return_value); }