summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_select_error.phpt
blob: 02e4f45ebeba40b4c79c7963822c90b813c6f776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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) must only have elements of type Socket, string given