[php-src] PR #22015: sapi/cli/tests/php_cli_server_ipv6_error_message.phpt: ignore warning
| From: | orlitzky | Date: | Mon, 11 May 2026 17:57:40 +0000 |
| Subject: | [php-src] PR #22015: sapi/cli/tests/php_cli_server_ipv6_error_message.phpt: ignore warning | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36090@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22015
Author: orlitzky
This test is checking for brackets around an ipv6 address. On some systems, a PHP warning is emitted
before printing the expected output; for example,
```
[Fri May 8 17:24:55 2026] PHP Warning: Unknown: php_network_getaddresses: getaddrinfo for 2001:db8::
failed: Address family for hostname not supported in Unknown on line 0
[Fri May 8 17:24:55 2026] Failed to listen on [2001:db8::]:8080 (reason: php_network_getaddresses:
getaddrinfo for 2001:db8:: failed: Address family for hostname not supported)
```
Only the second of these is expected by the test, causing it to fail on those systems. The warning
does not seem harmful however, so with a small tweak to the expected output, we can ignore
everything up to the bracketed ipv6 address. This is ultimately the purpose of the test, to ensure
that the address prints with brackets.
CC: @alexandre-daubois