Re: Scheme identification in stream wrappers

From: Date: Wed, 06 Apr 2005 17:39:10 +0000
Subject: Re: Scheme identification in stream wrappers
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-15880@lists.php.net to get a copy of this message
> 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

« previous php.internals (#15880) next »