1--TEST-- 2ext/sockets - socket_sendto - test with incorrect parameters 3--EXTENSIONS-- 4sockets 5--FILE-- 6<?php 7 $s_c = socket_create_listen(0); 8 try { 9 $s_w = socket_sendto($s_c, "foo", -1, MSG_OOB, '127.0.0.1'); 10 } catch (\ValueError $e) { 11 echo $e->getMessage() . \PHP_EOL; 12 } 13 socket_close($s_c); 14?> 15--EXPECT-- 16socket_sendto(): Argument #3 ($length) must be greater than or equal to 0 17