Re: Possible support to DirectoryIterator to be include_path aware via flag

From: Date: Thu, 17 Dec 2009 18:55:29 +0000
Subject: Re: Possible support to DirectoryIterator to be include_path aware via flag
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-46461@lists.php.net to get a copy of this message
Hi!
My suggesting is to add support to include_path just like fopen already have, which is through a flag. So the prototype would be: DirectoryIterator::__construct(string $path [, bool $include_path = false]);
Maybe instead of adding this parameter one-by-one to every function doing anything with files, we should have just one function that resolves path against include path? stream_resolve_include_path() sounds like a good candidate, not sure if it also does directories. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#46461) next »