--TEST-- GH-16267 - overflow on socket_strerror argument --EXTENSIONS-- sockets --SKIPIF-- --FILE-- getMessage() . PHP_EOL; } try { socket_strerror(PHP_INT_MAX); } catch (\ValueError $e) { echo $e->getMessage() . PHP_EOL; } ?> --EXPECTF-- socket_strerror(): Argument #1 ($error_code) must be between %s and %s socket_strerror(): Argument #1 ($error_code) must be between %s and %s