com php-src: Add zpp check to spl_classes(): ext/spl/ php_spl.c

From: Date: Tue, 03 Sep 2019 07:50:08 +0000
Subject: com php-src: Add zpp check to spl_classes(): ext/spl/ php_spl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108201@lists.php.net to get a copy of this message
Commit: c0e9b1532e13d97196d67d687d4c3bc1d6918537 Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 3 Sep 2019 09:50:08 +0200 Parents: 5acedabfc04ddbb53d68a52a4ebcccca3090cbdc Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c0e9b1532e13d97196d67d687d4c3bc1d6918537 Log: Add zpp check to spl_classes() Changed paths: M ext/spl/php_spl.c Diff: diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index c509c24..b147a96 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)

« previous php.cvs (#108201) next »