1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/sockets/tests/socket_select_error.phpt
Máté Kocsis 77172c220a Convert resources to objects in ext/sockets
Closes GH-5900.
2020-08-03 23:26:38 +02:00

18 lines
400 B
PHP

--TEST--
socket_select() error conditions
--SKIPIF--
<?php
if (!extension_loaded('sockets')) die('skip socket extension not available');
?>
--FILE--
<?php
$r = $w = $e = ['no resource'];
try {
socket_select($r, $w, $e, 1);
} catch (TypeError $ex) {
echo $ex->getMessage(), PHP_EOL;
}
?>
--EXPECT--
socket_select(): Argument #1 ($read_fds) must only have elements of type Socket, string given