#37824 [Opn->Bgs]: include("../filename");

From: Date: Fri, 16 Jun 2006 10:22:20 +0000
Subject: #37824 [Opn->Bgs]: include("../filename");
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98408@lists.php.net to get a copy of this message
 ID:               37824
 Updated by:       bjori@php.net
 Reported By:      sailormax at hightech dot lv
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Win32
 PHP Version:      5.1.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:
------------------------------------------------------------------------

[2006-06-16 09:40:47] sailormax at hightech dot lv

Description:
------------
include previous directory's file doesn't change include_path directory

Reproduce code:
---------------
execute from browser a/b/b.php
files:

-- file name: a/b/b.php --
b<br />
<? include("../a.php"); ?>
-- end of file --

-- file name: a/a.php --
a<br />
<? include("../root.php"); ?>
-- end of file --

-- file name: root.php --
root
-- end of file --

Expected result:
----------------
b
a
root

Actual result:
--------------
b
a

Warning: include(../root.php) [function.include]: failed to open
stream: No such file or directory


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37824&edit=1


Thread (2 messages)

« previous php.bugs (#98408) next »