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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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