-
Notifications
You must be signed in to change notification settings - Fork 859
Recommend ext/uri over parse_url() #5450
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Affected page
https://www.php.net/manual/en/function.parse-url.php
Current issue
ext/uri was introduced to fix long-standing issues with parse_url(). parse_url() does not strictly follow any particular spec, does not correctly handle parsing of relative URLs, and accepts invalid URLs that can circumvent sanitization checks.
See https://wiki.php.net/rfc/url_parsing_api for more details.
Suggested improvement
There should be a note that encourages the use of ext/uri over parse_url().
Additional context (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request