summaryrefslogtreecommitdiff
path: root/ext/spl/spl_directory.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2006-02-19 04:29:42 +0000
committerAndi Gutmans <andi@php.net>2006-02-19 04:29:42 +0000
commit1efe984d08ccab1d06f062ca157e3bdb2cb7cd57 (patch)
treef12f77325e51b257cb0a8f039ed7568e4ed0fb34 /ext/spl/spl_directory.c
parent8f126f33ac87e3bf1432b2a94f27e5f8f47cde9f (diff)
downloadphp-git-1efe984d08ccab1d06f062ca157e3bdb2cb7cd57.tar.gz
- Get rid of using ENFORCE_SAFE_MODE.
Diffstat (limited to 'ext/spl/spl_directory.c')
-rwxr-xr-xext/spl/spl_directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c
index 04f72be878..a5d093bf15 100755
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -174,7 +174,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, ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL);
+ intern->u.dir.dirp = php_stream_opendir(path, REPORT_ERRORS, NULL);
if (intern->path_len && (path[intern->path_len-1] == '/'
#if defined(PHP_WIN32) || defined(NETWARE)
@@ -202,7 +202,7 @@ static int spl_filesystem_file_open(spl_filesystem_object *intern, int use_inclu
{
intern->type = SPL_FS_FILE;
intern->u.file.context = php_stream_context_from_zval(intern->u.file.zcontext, 0);
- intern->u.file.stream = php_stream_open_wrapper_ex(intern->file_name, intern->u.file.open_mode, (use_include_path ? USE_PATH : 0) | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, intern->u.file.context);
+ intern->u.file.stream = php_stream_open_wrapper_ex(intern->file_name, intern->u.file.open_mode, (use_include_path ? USE_PATH : 0) | REPORT_ERRORS, NULL, intern->u.file.context);
if (intern->u.file.stream == NULL) {
if (!EG(exception)) {