[php-src] PR #25614: Fix GH-25604: Report accepted IPv4 range errors as non-fatal
| From: | akouhr00t | Date: | Thu, 19 Nov 2026 23:47:01 +0000 |
| Subject: | [php-src] PR #25614: Fix GH-25604: Report accepted IPv4 range errors as non-fatal | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40837@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25614
Author: akouhr00t
Fixes #25604. Thanks to @M4kuq for reporting and diagnosing the issue.
PHP accepts
http://2130706433/ and normalizes
its host to 127.0.0.1`,
but marks the IPv4 range warning as fatal. This change preserves the
warning and sets failure to false when the final IPv4 part fits in
the remaining octets. Genuine overflows still fail.
The regression test also covers a valid integer host followed by an
invalid port, so each diagnostic retains the correct severity.
Tested on PHP 8.5.13. The regression test failed before the fix and
passed afterward. The URI suite had 330 passes, 6 skips, and 0 failures.
"Mohamed Amine AKOUH is having fun."