[php-src] Issue #9545: parse_url() regression in php 8.2, no longer recognizes 'scheme:#fragement`

From: Date: Wed, 14 Sep 2022 20:08:33 +0000
Subject: [php-src] Issue #9545: parse_url() regression in php 8.2, no longer recognizes 'scheme:#fragement`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242421@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9545 Author: Berdir ### Description The following code: ```php <?php var_dump(parse_url('internal:#feeding')); ``` Resulted in this output: ``` array(2) { ["path"]=> string(9) "internal:" ["fragment"]=> string(7) "feeding" } ``` But I expected this output instead: ``` array(2) { ["scheme"]=> string(8) "internal" ["fragment"]=> string(7) "feeding" } ``` See https://3v4l.org/nFqLN This appears to a be a regression of https://github.com/php/php-src/pull/7844 ### PHP Version PHP 8.2rc1 ### Operating System _No response_

« previous php.bugs (#242421) next »