Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46464 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33813 invoked from network); 17 Dec 2009 23:52:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2009 23:52:15 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.133 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.133 mailout1.netbeat.de Linux 2.6 Received: from [83.243.58.133] ([83.243.58.133:59339] helo=mailout1.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/90-28160-C24CA2B4 for ; Thu, 17 Dec 2009 18:52:14 -0500 Received: (qmail 10507 invoked by uid 89); 17 Dec 2009 23:59:12 -0000 Received: from unknown (HELO ?192.168.1.21?) (postmaster%schlueters.de@93.104.63.83) by mailout1.netbeat.de with ESMTPA; 17 Dec 2009 23:59:12 -0000 X-Originator: 9e51b244e0a38413ab6a9876e36ba9df To: Guilherme Blanco Cc: Stanislav Malyshev , internals@lists.php.net In-Reply-To: References: <4B2A7EA1.8080905@zend.com> Content-Type: text/plain; charset="UTF-8" Organization: php.net Date: Fri, 18 Dec 2009 00:51:31 +0100 Message-ID: <1261093891.2756.78.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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 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 >