Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24307 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27289 invoked by uid 1010); 10 Jul 2006 14:50:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27274 invoked from network); 10 Jul 2006 14:50:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2006 14:50:28 -0000 X-PHP-List-Original-Sender: francois.laupretre@ratp.fr X-Host-Fingerprint: 81.255.174.8 odii-smtp2.ratp.fr Solaris 8 (2) Received: from ([81.255.174.8:29730] helo=odii-smtp.ratp.fr) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id B1/E7-16663-03962B44 for ; Mon, 10 Jul 2006 10:50:26 -0400 Received: from nyplic28.info.ratp (unknown [188.20.209.28]) by odii-smtp.ratp.fr (Postfix) with ESMTP id 336B526981; Mon, 10 Jul 2006 16:50:19 +0200 (MEST) Received: from EXCHANGE04.info.ratp ([188.20.209.3]) by nyplic28.info.ratp with Microsoft SMTPSVC(6.0.3790.211); Mon, 10 Jul 2006 16:49:12 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6A42E.C3DD4EE2" Date: Mon, 10 Jul 2006 16:40:18 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Extending include path to support stream wrappers Thread-Index: AcakLsQJ0InayLGHSMyMzAyp8dKvsQ== To: Cc: X-OriginalArrivalTime: 10 Jul 2006 14:49:12.0896 (UTC) FILETIME=[02339C00:01C6A430] Subject: Extending include path to support stream wrappers From: francois.laupretre@ratp.fr (=?iso-8859-1?Q?LAUPRETRE_Fran=E7ois_=28P=29?=) ------_=_NextPart_001_01C6A42E.C3DD4EE2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I am currently implementing a packaging tool in PHP. If you know PHAR, = it is the same kind of tool, which allows to implement a virtual file = tree in a single physical file. =20 In such a tool, every file path becomes a 'stream-wrapped' path and the = problem comes from the difference in the way PHP handles these paths = relatively to 'plain' paths, especially the fact that a 'stream-wrapped' = path cannot be part of the include path. =20 The first reason is that the ':' character is used by the stream wrapper = and, also, as the Unix path separator. This one would be easy to solve, = but it would be useless because the engine dispatches its 'open' = requests to the wrappers before searching through the include paths. = And, the include path is searched in the 'plain' wrapper code. =20 I have proposed some ideas to correct this behavior as a 'Feature = request' at http://bugs.php.net/bug.php?id=3D38006. Could you please = comment on it ? Even if you think that it is total nonsense or a loss of = time, I would really appreciate to have your opinion on this subject = before starting to modify anything. =20 Thanks & regards =20 Fran=E7ois =20 PS: If we can solve this issue, I have the same for you (maybe more = complex) about stream wrapper support in chdir/getcwd, and then the = glob/fnmatch issue ;-) ------_=_NextPart_001_01C6A42E.C3DD4EE2--