Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96237 invoked from network); 17 Dec 2009 18:55:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2009 18:55:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:57417] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/20-10317-5AE7A2B4 for ; Thu, 17 Dec 2009 13:55:35 -0500 Received: from us-gw1.zend.com (unknown [192.168.16.5]) by il-mr1.zend.com (Postfix) with ESMTP id AC0CE50486 for ; Thu, 17 Dec 2009 20:41:01 +0200 (IST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Dec 2009 10:55:28 -0800 Message-ID: <4B2A7EA1.8080905@zend.com> Date: Thu, 17 Dec 2009 10:55:29 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1pre Thunderbird/3.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Dec 2009 18:55:28.0711 (UTC) FILETIME=[801C0D70:01CA7F4A] Subject: Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag From: stas@zend.com (Stanislav Malyshev) 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