check g_hash for NULL before resetting it

This commit is contained in:
Antony Dovgal 2006-07-25 10:36:11 +00:00
parent d02b3bb7f3
commit 21f635223c

View file

@ -701,7 +701,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);
}