diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-03 09:50:08 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-03 09:50:08 +0200 |
commit | c0e9b1532e13d97196d67d687d4c3bc1d6918537 (patch) | |
tree | c790a1d6ecfebd593be64889038a6623d48391a1 /ext/spl/php_spl.c | |
parent | 5acedabfc04ddbb53d68a52a4ebcccca3090cbdc (diff) | |
download | php-git-c0e9b1532e13d97196d67d687d4c3bc1d6918537.tar.gz |
Add zpp check to spl_classes()
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r-- | ext/spl/php_spl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index c509c24759..b147a96128 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -237,6 +237,10 @@ PHP_FUNCTION(class_uses) Return an array containing the names of all clsses and interfaces defined in SPL */ PHP_FUNCTION(spl_classes) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + array_init(return_value); SPL_LIST_CLASSES(return_value, 0, 0, 0) |