Fw: [PHP-DEV] PHP 4.0 Bug #7815 Updated: include() / require() gives unable to access

From: Date: Tue, 14 Nov 2000 23:47:24 +0000
Subject: Fw: [PHP-DEV] PHP 4.0 Bug #7815 Updated: include() / require() gives unable to access
Groups: php.dev 
Request: Send a blank email to php-dev+get-38109@lists.php.net to get a copy of this message
if "/my/path/test.php" includes "/your/path/asdf.php" which includes "./testyourself.php", PHP will look for /my/path/testyourself.php. ----- Original Message ----- From: <ct@gocept.com> To: <php-dev@lists.php.net> Sent: Tuesday, November 14, 2000 9:21 AM Subject: [PHP-DEV] PHP 4.0 Bug #7815 Updated: include() / require() gives unable to access ID: 7815 User Update by: ct@gocept.com Status: Open Bug Type: Scripting Engine problem Description: include() / require() gives unable to access Hmmmpf ... think i didnt check out everything ... is it possible, that the path to the includes is not shifted within an included file? if file A is "/my/path/test.php" and it includes "/your/path/asdf.php", that if the second file includes "testyourself.php" not "/your/path/testyourself.php" but "/my/path/testyourself.php" is tried to be included? Previous Comments: --------------------------------------------------------------------------- [2000-11-14 12:12:56] ct@gocept.com Some includes in the php-code do fail with following message: Warning: Unable to access ./test.php in /home/ctheune/public_html/minicept/handlers/passthrough/handler.class on line 8 Fatal error: Failed opening required './test.php' (include_path='') in /home/ctheune/public_html/minicept/handlers/passthrough/handler.class on line 8 1. They file is world-readable 2. The same thing is happening when using absolute paths 3. The same file is accessible from another file which included the file that is failing to include. Sample: Case A: File A: <? include("./handlers/test.php"); ?> - Works Case B: File A: <? include("./handlers/test1.php"); ?> - Works File B ( aka: ./handlers/test1.php ): <? include("./test.php") ?> - Doesnt work My Oppinion: Is it possible that nested includes / requires sometimes won't work? Best regards Christian Theune www.gocept.com --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7815 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#38109) next »