From 21f635223cf1800655955f4726a45352f49c698c Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 25 Jul 2006 10:36:11 +0000 Subject: [PATCH] check g_hash for NULL before resetting it --- ext/filter/filter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/filter/filter.c b/ext/filter/filter.c index 5e4f5a88d6a..7dc95c7ddc2 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -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); }