php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37824 include("../filename");
Submitted: 2006-06-16 09:40 UTC Modified: 2006-06-16 10:22 UTC
From: sailormax at hightech dot lv Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.1.4 OS: Win32
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sailormax at hightech dot lv
New email:
PHP Version: OS:

 

 [2006-06-16 09:40 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-16 10:22 UTC] bjori@php.net
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


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 01:01:35 2025 UTC