ID: 28931 Updated by: [EMAIL PROTECTED] Reported By: cleong at nflc dot org -Status: Open +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Windows PHP Version: 4.3.6 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php /// for anything other then file is not valid. Previous Comments: ------------------------------------------------------------------------ [2004-06-26 06:40:01] cleong at nflc dot org Description: ------------ The function handles urls of the form 'file:///C:\filename.ext' correctly, but when the scheme is not 'file' (e.g. 'cow:///C:\chicken.pie), it throws an error. Would be nice if it behave the same way as parse_url() is useful for parsing the path to custom stream in ::stream_open(). Reproduce code: --------------- print_r(parse_url('file:///C:\index.php')); print_r(parse_url('cow:///C:\index.php')); Expected result: ---------------- Array ( [scheme] => file [path] => /C:\index.php ) Array ( [scheme] => cow [path] => /C:\index.php ) Actual result: -------------- Array ( [scheme] => file [path] => /C:\index.php ) Warning: parse_url(cow:///C:\index.php): Unable to parse url in c:\www\test\parse_url.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28931&edit=1
