1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/standard: disable one ipv2long test. (#15200)

atypical leading zeros are accepted on this platform.
This commit is contained in:
David CARLIER
2024-08-06 13:26:19 +02:00
committed by GitHub
parent 0c3b7677f9
commit b9da6cb3a2

View File

@@ -8,6 +8,7 @@ Test ip2long() function : usage variation 2, 64 bit
otherwise, the number is interpreted as decimal).
*/
if(PHP_OS == 'Darwin') die("skip - inet_pton behaves differently on Darwin");
if(PHP_OS == 'OpenBSD') die("skip - inet_pton accepts leading zeros on OpenBSD");
if(PHP_INT_SIZE != 8) {die('skip 64 bit only');}
?>
--FILE--