Doc #80431 [Ver->Csd]: parse_url() return fragment, query while there is not.
| From: | git@php.net | Date: | Fri, 24 Sep 2021 16:46:59 +0000 |
| Subject: | Doc #80431 [Ver->Csd]: parse_url() return fragment, query while there is not. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-19221@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80431&edit=1
ID: 80431
Updated by: git@php.net
Reported by: kawewong at gmail dot com
Summary: parse_url() return fragment, query while there is
not.
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: URL related
Operating System: Windows
PHP Version: 8.0.0
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/0254e633d2a0cf36c3b3a2ba19350019e12d3b4b
Log: Fix #80431: parse_url() return fragment, query while there is not
Previous Comments:
------------------------------------------------------------------------
[2020-11-27 08:11:23] requinix@php.net
This is a deliberate change.
https://www.php.net/manual/en/migration80.incompatible.php
(search for "parse_url")
However, the function's docs could use a Changelog entry.
------------------------------------------------------------------------
[2020-11-27 08:06:47] kawewong at gmail dot com
Description:
------------
If I enter the URL like this "/path?#"
The
parse_url() function always return fragment and query array key while previous
versions of PHP like 5.x, 7.x doesn't return these value if not exists.
Expected result:
----------------
array(
'path' => '/path',
);
Actual result:
--------------
array(
'path' => '/path',
'query' => '',
'fragment' => '',
);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80431&edit=1