mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

Also change $max_length to $length in a number of filesystem APIs, where our usage was inconsistent. Closes GH-6276.
17 lines
396 B
PHP
17 lines
396 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) must only have elements of type Socket, string given
|