Skip to content

Commit dd3bfb3

Browse files
committed
Switch to new ZPP
1 parent d02734f commit dd3bfb3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/spl/spl_directory.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,9 +1458,11 @@ PHP_METHOD(RecursiveDirectoryIterator, hasChildren)
14581458
bool allow_links = 0;
14591459
spl_filesystem_object *intern = Z_SPLFILESYSTEM_P(ZEND_THIS);
14601460

1461-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|b", &allow_links) == FAILURE) {
1462-
RETURN_THROWS();
1463-
}
1461+
ZEND_PARSE_PARAMETERS_START(0, 1)
1462+
Z_PARAM_OPTIONAL
1463+
Z_PARAM_BOOL(allow_links)
1464+
ZEND_PARSE_PARAMETERS_END();
1465+
14641466
if (spl_filesystem_is_invalid_or_dot(intern->u.dir.entry.d_name)) {
14651467
RETURN_FALSE;
14661468
} else {

0 commit comments

Comments
 (0)