Skip to content

ext/uri: Fix GH-22629 WHATWG validation error incorrect with empty host and non-empty userinfo#22699

Merged
TimWolla merged 1 commit into
php:PHP-8.5from
kocsismate:gh-22629-fix-missing-host
Jul 12, 2026
Merged

ext/uri: Fix GH-22629 WHATWG validation error incorrect with empty host and non-empty userinfo#22699
TimWolla merged 1 commit into
php:PHP-8.5from
kocsismate:gh-22629-fix-missing-host

Conversation

@kocsismate

Copy link
Copy Markdown
Member

The returned error code (LXB_URL_ERROR_TYPE_INVALID_CREDENTIALS) apparently contradicts the specification:

"If atSignSeen is true and buffer is the empty string, host-missing validation error, return failure."

… host and non-empty userinfo

The returned error code (LXB_URL_ERROR_TYPE_INVALID_CREDENTIALS) apparently contradicts the specification:

"If atSignSeen is true and buffer is the empty string, host-missing validation error, return failure."
@kocsismate kocsismate force-pushed the gh-22629-fix-missing-host branch from 98457e0 to 8e3ec77 Compare July 11, 2026 19:33
Comment thread ext/lexbor/patches/update-lexbor.sh
@TimWolla TimWolla merged commit 2014eb2 into php:PHP-8.5 Jul 12, 2026
18 checks passed
TimWolla added a commit that referenced this pull request Jul 12, 2026
* PHP-8.5:
  ext/uri: Fix GH-22629 WHATWG validation error incorrect with empty host and non-empty userinfo (#22699)
TimWolla pushed a commit to kocsismate/php-src that referenced this pull request Jul 12, 2026
[Tim: Extracted this as a new commit from phpGH-22699]
@kocsismate kocsismate deleted the gh-22629-fix-missing-host branch July 12, 2026 18:11
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.

2 participants