Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36119 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46201 invoked from network); 13 Mar 2008 11:24:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2008 11:24:50 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:43961] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/E8-34038-10F09D74 for ; Thu, 13 Mar 2008 06:24:50 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 13 Mar 2008 13:25:05 +0200 Message-ID: <06B0D32C7A96544490D18AF653D6BDE5026BA120@il-ex1.zend.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] RE: [PATCH] adding stream wrappers to include_path Thread-Index: AciE+yAQc/20l5r+QiqxxuOQx7TfEAAASLow To: "Pierre Joye" Cc: "Gregory Beaver" , "internals Mailing List" Subject: RE: [PHP-DEV] RE: [PATCH] adding stream wrappers to include_path From: dmitry@zend.com ("Dmitry Stogov") It is too difficult for extension that is not in the core distribution yet. For now I think it is simple to override zend_stream_open_function() and zend_resolve_path_function() callbacks by ext/phar and provide something like phar.include_path directive. Thanks. Dmitry. > -----Original Message----- > From: Pierre Joye [mailto:pierre.php@gmail.com]=20 > Sent: Thursday, March 13, 2008 2:12 PM > To: Dmitry Stogov > Cc: Gregory Beaver; internals Mailing List > Subject: Re: [PHP-DEV] RE: [PATCH] adding stream wrappers to=20 > include_path >=20 >=20 > On Thu, Mar 13, 2008 at 11:55 AM, Dmitry Stogov=20 > wrote: > > Hi Greg, > > > > In general include_path cannot contain pathes with ':' character, =20 > > because it is the POSIX path separator. So I don't see a=20 > way to use=20 > > stream wrappers in include_path. :( >=20 > What's about quotes or escape? Quotes are somehow more=20 > readable and are already used in many places (generally not=20 > specifically in PHP). I can imagine a: >=20 > set_include_path('"foo://something/bar"' . PATH_SEPARATOR .=20 > get_incude_path()); >=20 > It may add some complexity in the parser but it can be really=20 > useful (well, for phar-like applications at least as I would=20 > not recommend too use that in normal apps :). >=20 > Cheers, > --=20 > Pierre > http://blog.thepimp.net | http://www.libgd.org >=20