[php-src] Issue #8370: parse_url mistakes hostname with path
| From: | ppodgorskicrido | Date: | Thu, 14 Apr 2022 12:25:56 +0000 |
| Subject: | [php-src] Issue #8370: parse_url mistakes hostname with path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240967@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8370
Comment Author: ppodgorskicrido
@cmb69
I know that an output of partial url may not be perfect, but it is common to give url without
scheme.
I tested ``
parse_url`` against similar urls (e.g "google.com",
"www.github.com"). As you said: without "//" it won't work.
Clarifying the algorithm would be helpful, but IMO this should be fixed - it is common way to show
urls.