summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-08-23 17:39:20 +0000
committerWez Furlong <wez@php.net>2002-08-23 17:39:20 +0000
commit2a71d7d5bb7f58bf0bf6cc5e56d61ad4469aead5 (patch)
tree00a93992c53df3107b74f6df3ea64581b7431dec /main
parent6650761f9b4851566a43535703d5aee16cd8379b (diff)
downloadphp-git-2a71d7d5bb7f58bf0bf6cc5e56d61ad4469aead5.tar.gz
Respect safe mode setting when opening scripts and things for the ZE.
Diffstat (limited to 'main')
-rw-r--r--main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index 446e94786a..31dfdd71cf 100644
--- a/main/main.c
+++ b/main/main.c
@@ -711,7 +711,7 @@ static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path
{
TSRMLS_FETCH();
- return php_stream_open_wrapper_as_file((char *)filename, "rb", USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS, opened_path);
+ return php_stream_open_wrapper_as_file((char *)filename, "rb", ENFORCE_SAFE_MODE|USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS, opened_path);
}
/* }}} */