summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-08 22:48:01 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-08 22:48:01 +0000
commit2a291ba362c05f0fe10ee9384f9c25dfc6edf4be (patch)
treebc3cb5e7d7f8f52bdb4b4527e44e214b48ffc27d /main/fopen_wrappers.c
parent1a8d4258ecd3768ffb9d2036c704b27e24f4025b (diff)
downloadphp-git-2a291ba362c05f0fe10ee9384f9c25dfc6edf4be.tar.gz
Made open_basedir error more descriptive.
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index fe0174126f..72fb8a7339 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -191,7 +191,8 @@ PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC)
ptr = end;
}
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "open_basedir restriction in effect. File is in wrong directory");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING,
+ "open_basedir restriction in effect. File(%s) is not within the allowed path(s): (%s)", path, pathbuf);
efree(pathbuf);
errno = EPERM; /* we deny permission to open it */
return -1;