]> granicus.if.org Git - php/commitdiff
Made open_basedir error more descriptive.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 8 Nov 2002 22:48:01 +0000 (22:48 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 8 Nov 2002 22:48:01 +0000 (22:48 +0000)
main/fopen_wrappers.c

index fe0174126fce4b035c1890f5be20a2cd174b17b5..72fb8a7339aa2c3f1b8c184142e625abad82a3a3 100644 (file)
@@ -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;