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

From: Date: Thu, 17 Dec 2009 23:51:31 +0000
Subject: Re: Possible support to DirectoryIterator to be include_path aware via flag
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-46464@lists.php.net to get a copy of this message
On Thu, 2009-12-17 at 18:31 -0200, Guilherme Blanco wrote: > Yes, but stream_resolve_include_path() works only for files and also > it's PHP6 only. =( Should be quite simple to merge to other branches if anybody really cares. Doesn't look like anybody cared from the time 5.3 came up until at least now :-) In general I don't like this include path magic as it's not really clear what happens, with the include_path flag set the iterator for instance might iterate over all matching directories in all include paths. johannes > On Thu, Dec 17, 2009 at 4:55 PM, Stanislav Malyshev <stas@zend.com> wrote: > > 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 > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > Guilherme Blanco - Web Developer > CBC - Certified Bindows Consultant > Cell Phone: +55 (16) 9215-8480 > MSN: guilhermeblanco@hotmail.com > URL: http://blog.bisna.com > São Paulo - SP/Brazil >

« previous php.internals (#46464) next »