]> granicus.if.org Git - php/commitdiff
MFB: Fix for open_basedir error message
authorfoobar <sniper@php.net>
Sun, 23 Feb 2003 22:30:02 +0000 (22:30 +0000)
committerfoobar <sniper@php.net>
Sun, 23 Feb 2003 22:30:02 +0000 (22:30 +0000)
main/fopen_wrappers.c

index 831d11a9ef2f53d49567a5002e323ae4ff4adbbc..eac8e6f4020c433577adac7efce9240038d37a02 100644 (file)
@@ -191,7 +191,7 @@ 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(%s) is not within the allowed path(s): (%s)", path, pathbuf);
+                       "open_basedir restriction in effect. File(%s) is not within the allowed path(s): (%s)", path, PG(open_basedir));
                efree(pathbuf);
                errno = EPERM; /* we deny permission to open it */
                return -1;