php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43691 DirectoryIterator does not work with include_path
Submitted: 2007-12-27 19:17 UTC Modified: 2008-01-28 23:53 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: karol at babioch dot de Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.2.5 OS: Windows XP Professional
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: karol at babioch dot de
New email:
PHP Version: OS:

 

 [2007-12-27 19:17 UTC] karol at babioch dot de
Description:
------------
In my opinion DirectoryIterator should work with include_path, but it doesn't. I couldn't find any information about this in the documentation, so maybe I'm wrong.

Reproduce code:
---------------
<?php

error_reporting(E_ALL|E_STRICT);

set_include_path('./../');

$dir = new DirectoryIterator('test2');

?>


Expected result:
----------------
A new dir iterator from './../test2' should be created!

Actual result:
--------------
PHP (DirectoryIterator) throws an Exception.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-28 23:53 UTC] tony2001@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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 07:01:29 2024 UTC