1--TEST-- 2GH-16267 - overflow on socket_strerror argument 3--EXTENSIONS-- 4sockets 5--SKIPIF-- 6<?php if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?> 7--FILE-- 8<?php 9try { 10 socket_strerror(PHP_INT_MIN); 11} catch (\ValueError $e) { 12 echo $e->getMessage() . PHP_EOL; 13} 14try { 15 socket_strerror(PHP_INT_MAX); 16} catch (\ValueError $e) { 17 echo $e->getMessage() . PHP_EOL; 18} 19?> 20--EXPECTF-- 21socket_strerror(): Argument #1 ($error_code) must be between %s and %s 22socket_strerror(): Argument #1 ($error_code) must be between %s and %s 23