mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
check g_hash for NULL before resetting it
This commit is contained in:
parent
d02b3bb7f3
commit
21f635223c
1 changed files with 3 additions and 1 deletions
|
@ -701,7 +701,9 @@ PHP_FUNCTION(input_get_args)
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
} else {
|
} else {
|
||||||
g_hash = HASH_OF(array_ptr);
|
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);
|
array_init(return_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue