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
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: 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: Thu Dec 26 18:01:31 2024 UTC