Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15880 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59567 invoked by uid 1010); 6 Apr 2005 17:39:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59552 invoked from network); 6 Apr 2005 17:39:16 -0000 Received: from unknown (HELO yahoo.com) (127.0.0.1) by localhost with SMTP; 6 Apr 2005 17:39:16 -0000 X-Host-Fingerprint: 69.12.155.130 69-12-155-130.dsl.static.sonic.net Linux 2.4/2.6 Received: from ([69.12.155.130:3979] helo=pigeon.alphaweb.net) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 88/70-19272-4CE14524 for ; Wed, 06 Apr 2005 13:39:16 -0400 Received: from localhost ([127.0.0.1] helo=peiscg33m) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1DJE6g-0003bA-00; Wed, 06 Apr 2005 10:14:22 -0700 Message-ID: <001101c53acf$8aa975d0$5c8be5a9@ohr.berkeley.edu> Reply-To: "Sara Golemon" To: "Wez Furlong" Cc: "Morgan L. Owens" , References: <425369FD.1000800@nznet.gen.nz><4e89b4260504060541544ccde2@mail.gmail.com><003801c53ab9$a7902650$6c051fac@lighthammer> <4e89b426050406083078b02033@mail.gmail.com> Date: Wed, 6 Apr 2005 10:39:10 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Subject: Re: [PHP-DEV] Scheme identification in stream wrappers From: pollita@php.net ("Sara Golemon") > It's not 'nix you want to worry about, but systems where : identifies > a drive or device; win32, vms (?), (and Amiga, if that still counts :) > Doi, drive letters.... So yeah that can be worked around with a: #ifdef PHP_WIN32 if (p = path+1 && isalpha(*path) && (*p == '/' || *p == '\\')) { /* win32 drive */ } #endif But then you've also got the ADS workaround: #ifdef PHP_WIN32 { char *q; for(q = p + 1; isnum(*q); q++); if (!*q) { /* filename with ADS identifier */ } } #endif > Could be more trouble than its worth, BC wise. > And god knows what else for other platforms which give ':' meaning. It comes down to "How ugly does one want to get?". -Sara