Skip to content

Commit c0e9b15

Browse files
committed
Add zpp check to spl_classes()
1 parent 5acedab commit c0e9b15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/spl/php_spl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ PHP_FUNCTION(class_uses)
237237
Return an array containing the names of all clsses and interfaces defined in SPL */
238238
PHP_FUNCTION(spl_classes)
239239
{
240+
if (zend_parse_parameters_none() == FAILURE) {
241+
return;
242+
}
243+
240244
array_init(return_value);
241245

242246
SPL_LIST_CLASSES(return_value, 0, 0, 0)

0 commit comments

Comments
 (0)