#18721 [NEW]: open_basedir complained when a non existent path is specified in include_path
| From: | jimmy at harlindong dot com | Date: | Sat, 03 Aug 2002 08:52:09 +0000 |
| Subject: | #18721 [NEW]: open_basedir complained when a non existent path is specified in include_path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15905@lists.php.net to get a copy of this message | ||
From: jimmy@harlindong.com
Operating system: FreeBSD 4.6
PHP version: 4.2.2
PHP Bug Type: PHP options/info functions
Bug description: open_basedir complained when a non existent path is specified in include_path
As the title says, when there is a non existent path specified in
include_path, activating open_basedir will generate the warning
Warning: open_basedir restriction in effect. File is in wrong directory in
"xxxxxx.php" on line XX
This warning will not appear if the invalid path does not start with a
slash.
e.g. include_path = ".:asdf/asdf:/usr/local/lib/php" will not produce
warning when open_basedir is enabled but will produce warning when
include_path = ".:/asdf/asdf:/usr/local/lib/php"
note the /asdf/asdf is the non-existent path.
I understand that by removing the non-existent path, the error will be
gone, however I think the warning should not have appeared especially when
it complains about open_basedir and not about the include_path itself
which will cause confusion.
--
Edit bug report at http://bugs.php.net/?id=18721&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18721&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18721&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18721&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18721&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18721&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18721&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18721&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18721&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18721&r=globals