mirror of
https://github.com/php/php-src.git
synced 2026-04-01 21:22:13 +02:00
Switch to new ZPP
This commit is contained in:
@@ -1458,9 +1458,11 @@ PHP_METHOD(RecursiveDirectoryIterator, hasChildren)
|
||||
bool allow_links = 0;
|
||||
spl_filesystem_object *intern = Z_SPLFILESYSTEM_P(ZEND_THIS);
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|b", &allow_links) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_START(0, 1)
|
||||
Z_PARAM_OPTIONAL
|
||||
Z_PARAM_BOOL(allow_links)
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
if (spl_filesystem_is_invalid_or_dot(intern->u.dir.entry.d_name)) {
|
||||
RETURN_FALSE;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user