diff options
author | Antony Dovgal <tony2001@php.net> | 2006-07-25 10:36:11 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-07-25 10:36:11 +0000 |
commit | 21f635223cf1800655955f4726a45352f49c698c (patch) | |
tree | 37ae6a36140c3b0de69789a5ae30b4f264508219 | |
parent | d02b3bb7f3ae2fd4402a4c21cdd3f13b76f6a9f4 (diff) | |
download | php-git-21f635223cf1800655955f4726a45352f49c698c.tar.gz |
check g_hash for NULL before resetting it
-rw-r--r-- | ext/filter/filter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/filter/filter.c b/ext/filter/filter.c index 5e4f5a88d6..7dc95c7ddc 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); } |