Edit report at https://bugs.php.net/bug.php?id=61735&edit=1
ID: 61735 Updated by: [email protected] Reported by: nanocaiordo at gmail dot com Summary: parse_url file:// fails with Windows dir separators -Status: Open +Status: Not a bug Type: Bug Package: URL related Operating System: Windows 7 PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: \ is not a valid character in an URL. While php streams functions are more flexible when used with the file or stream related (fopen and co), parse_url strictly applies the URI RFC. Previous Comments: ------------------------------------------------------------------------ [2012-04-15 02:27:26] nanocaiordo at gmail dot com Description: ------------ Using the file:// scheme, parse_url() fails when the path has windows DIRECTORY_SEPARATOR, \ Test script: --------------- var_dump(parse_url('file://'. dirname(__FILE__))); Expected result: ---------------- array() Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61735&edit=1
