Req #67875 [NEW]: parse_url behavior request
| From: | christopher dot geisel at gmail dot com | Date: | Wed, 20 Aug 2014 17:58:20 +0000 |
| Subject: | Req #67875 [NEW]: parse_url behavior request | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-187206@lists.php.net to get a copy of this message | ||
From: christopher dot geisel at gmail dot com
Operating system: CentOS 6.5
PHP version: 5.4.31
Package: Scripting Engine problem
Bug Type: Feature/Change Request
Bug description:parse_url behavior request
Description:
------------
parse_url feature request: parse on "/" for path
The behavior where parse_url sets "path" in the absence of a scheme/port
is documented, but not intuitive.
Proposal: parse on "/" for the path. In the absence of scheme/port, set
host with whatever precedes the path.
Test script:
---------------
https://gist.github.com/cgeisel/d85f1175d570fb20534e
Expected result:
----------------
See comments in gist
--
Edit bug report at https://bugs.php.net/bug.php?id=67875&edit=1
--