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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 19 07:01:29 2024 UTC