1--TEST--
2socket_select() error conditions
3--SKIPIF--
4<?php
5if (!extension_loaded('sockets')) die('skip socket extension not available');
6?>
7--FILE--
8<?php
9$r = $w = $e = ['no resource'];
10try {
11    socket_select($r, $w, $e, 1);
12} catch (TypeError $ex) {
13    echo $ex->getMessage(), PHP_EOL;
14}
15?>
16--EXPECT--
17socket_select(): Argument #1 ($read) must only have elements of type Socket, string given
18