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
 [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: Sat Dec 21 12:01:31 2024 UTC