Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84005 invoked by uid 1010); 9 Apr 2005 10:07:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83989 invoked from network); 9 Apr 2005 10:07:07 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 9 Apr 2005 10:07:07 -0000 X-Host-Fingerprint: 202.27.216.34 bo.nznet.gen.nz Linux 2.4/2.6 Received: from ([202.27.216.34:58043] helo=bo.nznet.gen.nz) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id C0/F3-19272-849A7524 for ; Sat, 09 Apr 2005 06:07:05 -0400 Received: from [127.0.0.1] (ms1-31.nznet.gen.nz [202.27.216.160]) by bo.nznet.gen.nz (8.11.6/8.11.6) with ESMTP id j39A6u431291; Sat, 9 Apr 2005 22:06:56 +1200 Message-ID: <4257A954.3090408@nznet.gen.nz> Date: Sat, 09 Apr 2005 22:07:16 +1200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-nz, en-gb, en-au, en, en-us MIME-Version: 1.0 To: internals@lists.php.net CC: Wez Furlong , Sara Golemon References: <425369FD.1000800@nznet.gen.nz> <4e89b4260504060541544ccde2@mail.gmail.com> <003801c53ab9$a7902650$6c051fac@lighthammer> <4e89b426050406083078b02033@mail.gmail.com> <001101c53acf$8aa975d0$5c8be5a9@ohr.berkeley.edu> <4254A37D.8070408@nznet.gen.nz> <4e89b4260504070603358c31c5@mail.gmail.com> In-Reply-To: <4e89b4260504070603358c31c5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scheme identification in stream wrappers: (Partial) disambiguation? From: packrat@nznet.gen.nz ("Morgan L. Owens") Wez Furlong wrote: > > Really? > Can you guarantee that your user-space code to sniff out the path is > going to work 100% of the time on all platforms? > Who said user-space? I meant in the implementation of fopen(). > > It's not just 1 letter. There are 3 letter special device names too. > Natch; yeah. You still can't create a directory named "aux". Or "com1". > > The file:// protocol is a load of rubbish, because it neglects to > specify how remote file access should work. > It explicitly states as much. "The file URL scheme is unusual in that it does not specify an Internet protocol or access method for such files; as such, its utility in network protocols between hosts is limited." > > Is there a clear win for PHP, that outweighs the strong risk of > breaking PHP until all the edge cases have been resolved? > Probably not. It would have been easier to fix it earlier on before kludging file paths and URLs together in the same namespace without thinking through the consequences, but that opportunity is long lost. I guess it will just have to be another case where we have to say "Screw the standards. They're too difficult to implement." Ah well, it's only a couple of characters. tel://+1-816-555-1212 it is, then. And explain to users _why_ some URLs need to be massaged (in user space) before PHP can recognise them. It's not a bug, it's a feature. MLO