diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-07-25 10:36:19 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-07-25 10:36:19 +0000 |
| commit | e5f71c36af8e70acea9e0b053aa1bfb635a7e455 (patch) | |
| tree | fea4b408539943d2fd84e4d728792acf68175c48 /ext | |
| parent | d6337819ba32fcdd7d22f3c20136fd3d3be9dc06 (diff) | |
| download | php-git-e5f71c36af8e70acea9e0b053aa1bfb635a7e455.tar.gz | |
MFH: check g_hash for NULL before resetting it
Diffstat (limited to 'ext')
| -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 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); } |
