|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2004-06-28 21:39 UTC] iliaa@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
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