mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
17 lines
395 B
PHP
17 lines
395 B
PHP
--TEST--
|
|
ext/sockets - socket_send - test with incorrect parameters
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('sockets')) {
|
|
die('skip sockets extension not available.');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$s_c = socket_create_listen(0);
|
|
$s_w = socket_send($s_c, "foo", -1, MSG_OOB);
|
|
socket_close($s_c);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: socket_send(): Length cannot be negative in %s on line %i
|