#27309 [Opn->Fbk]: unable to go to parent directory with require_once !

From: Date: Wed, 18 Feb 2004 16:50:20 +0000
Subject: #27309 [Opn->Fbk]: unable to go to parent directory with require_once !
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55150@lists.php.net to get a copy of this message
ID: 27309 Updated by: sniper@php.net Reported By: vexal at ifrance dot com -Status: Open +Status: Feedback Bug Type: Compile Failure -Operating System: Win2k +Operating System: win32 only PHP Version: 5.0.0b4 (beta4) New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-02-18 06:14:26] vexal at ifrance dot com Description: ------------ Works with php5b3 but not php5b4. With the require_once statement, it's impossible to go to a parent directory. a fatal error occurs while the compilation. Reproduce code: --------------- file test1.php in directory test1/ : <?php require_once "../test2.php"; echo $hello; ?> file test2.php in the parent directory : <?php $hello="Hello World !"; ?> Expected result: ---------------- compilation ok and print "Hello World !" Actual result: -------------- A fatal error occurs while compilation because it is unable to locate test2.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27309&edit=1

« previous php.bugs (#55150) next »