Use the default stream context for FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator

This commit is contained in:
Hannes Magnusson 2011-09-30 14:12:26 +00:00
parent 9eeac29cc3
commit 317f933cd6

View File

@ -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);