]> granicus.if.org Git - php/commitdiff
MFH: check g_hash for NULL before resetting it
authorAntony Dovgal <tony2001@php.net>
Tue, 25 Jul 2006 10:36:19 +0000 (10:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 25 Jul 2006 10:36:19 +0000 (10:36 +0000)
ext/filter/filter.c

index 815621bda53c2d2411b16e3e60a43686d61b349f..05bdfc6a8e52fd690090d225d1cd83023a2c0952 100644 (file)
@@ -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);
        }