Bug #79810 [NEW]: BC break in parse_url in PHP 8.0.0-dev
| From: | wouter at madewithlove dot be | Date: | Wed, 08 Jul 2020 15:06:53 +0000 |
| Subject: | Bug #79810 [NEW]: BC break in parse_url in PHP 8.0.0-dev | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-227891@lists.php.net to get a copy of this message | ||
From: wouter at madewithlove dot be
Operating system: ubuntu
PHP version: 8.0.0alpha1
Package: *General Issues
Bug Type: Bug
Bug description:BC break in parse_url in PHP 8.0.0-dev
Description:
------------
When running parse_url on an url ending in
? (such as
https://example.com?), parse_url behaves differently in PHP8.0.0
than it
did in PHP 7.x. It now adds a query array key containing an empty
string, which wasn't the case previously.
Test script:
---------------
var_dump(parse_url('https://example.com?'));
see: https://3v4l.org/etR9T
Expected result:
----------------
array(2) {
["scheme"]=>
string(5) "https"
["host"]=>
string(11) "example.com"
}
The result should be the same as in PHP7.x
Actual result:
--------------
array(3) {
["scheme"]=>
string(5) "https"
["host"]=>
string(11) "example.com"
["query"]=>
string(0) ""
}
--
Edit bug report at https://bugs.php.net/bug.php?id=79810&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79810&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79810&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79810&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79810&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79810&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79810&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79810&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79810&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79810&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79810&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79810&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79810&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79810&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79810&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79810&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79810&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79810&r=mysqlcfg