Bug #61735 [Opn->Nab]: parse_url file:// fails with Windows dir separators

From: Date: Sun, 15 Apr 2012 09:57:58 +0000
Subject: Bug #61735 [Opn->Nab]: parse_url file:// fails with Windows dir separators
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-169605@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61735&edit=1 ID: 61735 Updated by: pajoye@php.net 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

« previous php.bugs (#169605) next »