[php-src] PR #11651: ext/sockets/tests/mcast_ipv6_*.phpt: suppress no-ipv6 warning
| From: | orlitzky | Date: | Sun, 09 Jul 2023 20:50:23 +0000 |
| Subject: | [php-src] PR #11651: ext/sockets/tests/mcast_ipv6_*.phpt: suppress no-ipv6 warning | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22969@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11651
Author: orlitzky
These three tests try to create an ipv6 socket with socket_create() to determine if they should be
skipped. On certain systems lacking ipv6 support, however, the call to socket_create() itself raises
a warning:
BORK Warning: socket_create(): Unable to create socket [97]: Address
family not supported by protocol in ...
The output is "borked" because the return value (false) is expected but the text of the
warning is not. This commit uses the error control operator (@) to hide the warning. Afterwards the
tests are skipped normally on such a system.