iliaa Fri Nov 8 17:48:02 2002 EDT
Modified files:
/php4/main fopen_wrappers.c
Log:
Made open_basedir error more descriptive.
Index: php4/main/fopen_wrappers.c
diff -u php4/main/fopen_wrappers.c:1.152 php4/main/fopen_wrappers.c:1.153
--- php4/main/fopen_wrappers.c:1.152 Tue Nov 5 09:50:17 2002
+++ php4/main/fopen_wrappers.c Fri Nov 8 17:48:01 2002
@@ -16,7 +16,7 @@
| Jim Winstead <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen_wrappers.c,v 1.152 2002/11/05 14:50:17 iliaa Exp $ */
+/* $Id: fopen_wrappers.c,v 1.153 2002/11/08 22:48:01 iliaa Exp $ */
/* {{{ includes
*/
@@ -191,7 +191,8 @@
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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php