mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
14 lines
352 B
Plaintext
14 lines
352 B
Plaintext
|
--TEST--
|
||
|
Test if socket_set_nonblock throws E_WARNING with wrong parameters.
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!extension_loaded('sockets')) {
|
||
|
die('SKIP The sockets extension is not loaded.');
|
||
|
}
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$socket = socket_set_nonblock(array());
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: socket_set_nonblock() expects parameter 1 to be resource, array given in %s on line %d
|