Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8161 invoked from network); 17 Dec 2009 20:32:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2009 20:32:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.213 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:32770] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/12-10317-F359A2B4 for ; Thu, 17 Dec 2009 15:32:00 -0500 Received: by bwz5 with SMTP id 5so1747420bwz.23 for ; Thu, 17 Dec 2009 12:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xhkpniF4jfEvMJGofarb/iE4uqTgYDwNX0c/YVfxWY4=; b=sWocneAgxN55zB3h2eEjeyZcr36+aEynyNOPv+41QVly7D97/1RdKGl6+uLhWKclk3 8IrlFYMtFfJdHn049YLGqVDW20mRwmA+G/OH5A5F/EfUlSHKuCHB88dw16gbGjlHAofq ii8si/tkh+eNeaEPQqh9Gff4fJyyRB2Y5/zc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HWevEfdZo6rC5+UK5x2PXpB3vIkFoWQ52/yZRqlOdHl9JyPpvKYCEqcggbFvaEsc7g uuP5tpKaH3cEWyvl/7ZnuUwUju2tS2zjFEDzlvmGpH8s0et+cKwdfrwENNT8s1Q1bgRg E+gg3U7Z2B0GFTNVST5vyiI1aRx5xrrq9Dn4U= MIME-Version: 1.0 Received: by 10.204.3.14 with SMTP id 14mr1716116bkl.128.1261081914769; Thu, 17 Dec 2009 12:31:54 -0800 (PST) In-Reply-To: <4B2A7EA1.8080905@zend.com> References: <4B2A7EA1.8080905@zend.com> Date: Thu, 17 Dec 2009 18:31:54 -0200 Message-ID: To: Stanislav Malyshev Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Possible support to DirectoryIterator to be include_path aware via flag From: guilhermeblanco@gmail.com (Guilherme Blanco) Yes, but stream_resolve_include_path() works only for files and also it's PHP6 only. =3D( 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 =3D >> 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 =C2=A0 http://www.zend.com/ > (408)253-8829 =C2=A0 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com URL: http://blog.bisna.com S=C3=A3o Paulo - SP/Brazil