summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2006-04-14 17:47:51 +0000
committerSara Golemon <pollita@php.net>2006-04-14 17:47:51 +0000
commit2e4497b5a23a7130180c2fdc818dd4c734d27939 (patch)
treee34cada6ae151bfa30e58c3e46c9eb1a73030b1a
parent9f934f0adad47065e7e25c8cfae412e859f73640 (diff)
downloadphp-git-2e4497b5a23a7130180c2fdc818dd4c734d27939.tar.gz
MFH (r-1.436) copy() should not disrespect open_basedir on source file
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index b1ad6f742d..7771cb97c4 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -2143,7 +2143,7 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC)
int ret = FAILURE;
srcstream = php_stream_open_wrapper(src, "rb",
- STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS,
+ ENFORCE_SAFE_MODE | REPORT_ERRORS,
NULL);
if (!srcstream)