php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27309 unable to go to parent directory with require_once !
Submitted: 2004-02-18 06:14 UTC Modified: 2004-02-18 13:10 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: vexal at ifrance dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0b4 (beta4) OS: win32 only
Private report: No CVE-ID: None
 [2004-02-18 06:14 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-18 11:50 UTC] 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 13:10 UTC] vexal at ifrance dot com
thank you, it's ok now :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 23:01:28 2024 UTC