Skip to content

ext/standard: Preserve explicit URL port zero - #24440

Open
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/aph-7rk9
Open

iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/aph-7rk9

Conversation

@iliaal

@iliaal iliaal commented Oct 19, 2026

Copy link
Copy Markdown
Member

URL rewriting currently drops :0 from links and form actions. Using the parser's port-presence flag preserves an explicit zero without adding a port to URLs that omit one.

Use the URL parser's port-presence flag when reconstructing rewritten URLs.
Keep explicit port zero on links and form actions without adding a port to
URLs that omitted it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant