mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
16 lines
321 B
PHP
16 lines
321 B
PHP
--TEST--
|
|
socket_select() error conditions
|
|
--EXTENSIONS--
|
|
sockets
|
|
--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
|