summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-07-25 10:36:19 +0000
committerAntony Dovgal <tony2001@php.net>2006-07-25 10:36:19 +0000
commite5f71c36af8e70acea9e0b053aa1bfb635a7e455 (patch)
treefea4b408539943d2fd84e4d728792acf68175c48 /ext
parentd6337819ba32fcdd7d22f3c20136fd3d3be9dc06 (diff)
downloadphp-git-e5f71c36af8e70acea9e0b053aa1bfb635a7e455.tar.gz
MFH: check g_hash for NULL before resetting it
Diffstat (limited to 'ext')
-rw-r--r--ext/filter/filter.c4
1 files changed, 3 insertions, 1 deletions
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);
}