php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38302 Warning:No such file or directory
Submitted: 2006-08-03 02:26 UTC Modified: 2006-08-03 07:50 UTC
From: fyini at hkespow dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.1.4 OS: windows2000
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: fyini at hkespow dot com
New email:
PHP Version: OS:

 

 [2006-08-03 02:26 UTC] fyini at hkespow dot com
Description:
------------
directory

  www
   |- test.php
   |- test
   |   |- a.php
   |   |- b.php
   |   |- test
   |   |   |- c.php



Reproduce code:
---------------
test.php  <? require_once('test/a.php'); ?>

a.php     <? require_once('test/c.php'); ?>

c.php     <? require_once('../b.php');   ?>

Expected result:
----------------
require

Actual result:
--------------
Warning: require_once(../b.php) [function.require-once]: failed to open stream: No such file or directory in E:\testweb\test\test\c.php on line 1

Fatal error: require_once() [function.require]: Failed opening required '../b.php' (include_path='.;C:\php5\pear') in E:\testweb\test\test\c.php on line 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-03 07:50 UTC] tony2001@php.net
  www
   |- test.php
   |- test
   |- b.php <- No such file or directory.
   |   |- a.php
   |   |- b.php
   |   |- test
   |   |   |- c.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 21:01:27 2024 UTC