mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
19 lines
416 B
PHP
19 lines
416 B
PHP
--TEST--
|
|
Test if socket_set_block throws E_WARNING with wrong parameters.
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('sockets')) {
|
|
die('SKIP The sockets extension is not loaded.');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
socket_set_block(array());
|
|
?>
|
|
--EXPECTF--
|
|
Warning: socket_set_block() expects parameter 1 to be resource, array given in %s on line %d
|
|
--CREDITS--
|
|
Robin Mehner, robin@coding-robin.de
|
|
PHP Testfest Berlin 2009-05-09
|
|
|