mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
- Fix #44018 (RecursiveDirectoryIterator options inconsistancy)
This commit is contained in:
parent
aa79b70645
commit
de120f6698
@ -602,10 +602,8 @@ void spl_filesystem_object_construct(INTERNAL_FUNCTION_PARAMETERS, int ctor_flag
|
||||
php_set_error_handling(EH_THROW, spl_ce_RuntimeException TSRMLS_CC);
|
||||
|
||||
if (ctor_flags & DIT_CTOR_FLAGS) {
|
||||
flags = SPL_FILE_DIR_CURRENT_AS_FILEINFO;
|
||||
parsed = zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t|l", &path, &len, &path_type, &flags);
|
||||
} else {
|
||||
flags = 0;
|
||||
parsed = zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "t", &path, &len, &path_type);
|
||||
}
|
||||
if (parsed == FAILURE) {
|
||||
|
Loading…
Reference in New Issue
Block a user