#18721 [Opn->Fbk]: open_basedir complained when a non existent path is specified in include_path

From: Date: Fri, 04 Oct 2002 16:19:13 +0000
Subject: #18721 [Opn->Fbk]: open_basedir complained when a non existent path is specified in include_path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21495@lists.php.net to get a copy of this message
ID: 18721 Updated by: iliaa@php.net Reported By: jimmy@harlindong.com -Status: Open +Status: Feedback Bug Type: PHP options/info functions Operating System: FreeBSD 4.6 PHP Version: 4.2.2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-08-03 04:52:09] jimmy@harlindong.com 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 this bug report at http://bugs.php.net/?id=18721&edit=1

« previous php.bugs (#21495) next »