mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Use the default stream context for FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator
This commit is contained in:
parent
9eeac29cc3
commit
317f933cd6
@ -225,7 +225,7 @@ static void spl_filesystem_dir_open(spl_filesystem_object* intern, char *path TS
|
||||
|
||||
intern->type = SPL_FS_DIR;
|
||||
intern->_path_len = strlen(path);
|
||||
intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, NULL);
|
||||
intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, FG(default_context));
|
||||
|
||||
if (intern->_path_len > 1 && IS_SLASH_AT(path, intern->_path_len-1)) {
|
||||
intern->_path = estrndup(path, --intern->_path_len);
|
||||
|
Loading…
Reference in New Issue
Block a user