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

From: Date: Wed, 18 Feb 2004 18:10:39 +0000
Subject: #27309 [Fbk->Csd]: unable to go to parent directory with require_once !
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55155@lists.php.net to get a copy of this message
ID: 27309 User updated by: vexal at ifrance dot com Reported By: vexal at ifrance dot com -Status: Feedback +Status: Closed Bug Type: Zend Engine 2 problem Operating System: win32 only PHP Version: 5.0.0b4 (beta4) New Comment: thank you, it's ok now :) Previous Comments: ------------------------------------------------------------------------ [2004-02-18 11:50:19] sniper@php.net 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 ------------------------------------------------------------------------ [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 (#55155) next »