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