diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-09-15 21:27:45 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-09-15 21:30:15 +0200 |
commit | 7a20ba43d38a29c04d14cb3998128073fb17c7c8 (patch) | |
tree | d75fa1be2411bed94fd28a9e6f44e45eca19aa32 | |
parent | 5a79b4b9381c9ec6e69f9ba3d24b610bc38c499b (diff) | |
download | php-git-7a20ba43d38a29c04d14cb3998128073fb17c7c8.tar.gz |
Add missing ZPP_none()
-rw-r--r-- | ext/hash/hash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/hash/hash.c b/ext/hash/hash.c index 9204aaa2db..656cdf980f 100644 --- a/ext/hash/hash.c +++ b/ext/hash/hash.c @@ -598,6 +598,10 @@ PHP_FUNCTION(hash_algos) { zend_string *str; + if (zend_parse_parameters_none() == FAILURE) { + return; + } + array_init(return_value); ZEND_HASH_FOREACH_STR_KEY(&php_hash_hashtable, str) { add_next_index_str(return_value, zend_string_copy(str)); |