summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-09-03 09:50:08 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-09-03 09:50:08 +0200
commitc0e9b1532e13d97196d67d687d4c3bc1d6918537 (patch)
treec790a1d6ecfebd593be64889038a6623d48391a1 /ext/spl/php_spl.c
parent5acedabfc04ddbb53d68a52a4ebcccca3090cbdc (diff)
downloadphp-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.c4
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)