2009-05-18 02:07:36 +08:00
|
|
|
--TEST--
|
|
|
|
Test parameter handling in socket_select().
|
|
|
|
--DESCRIPTION--
|
|
|
|
usec > 999999
|
2021-06-11 17:57:42 +08:00
|
|
|
--EXTENSIONS--
|
|
|
|
sockets
|
2009-05-18 02:07:36 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$sockets = array();
|
|
|
|
if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
|
|
|
|
$domain = AF_INET;
|
|
|
|
} else {
|
|
|
|
$domain = AF_UNIX;
|
|
|
|
}
|
|
|
|
socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
|
|
|
|
|
|
|
|
$write = null;
|
|
|
|
$except = null;
|
|
|
|
$time = 0;
|
|
|
|
$usec = 2000000;
|
|
|
|
var_dump(socket_select($sockets, $write, $except, $time, $usec));
|
2020-08-09 17:06:57 +08:00
|
|
|
?>
|
2009-05-18 02:07:36 +08:00
|
|
|
--EXPECT--
|
|
|
|
int(0)
|
|
|
|
--CREDITS--
|
|
|
|
Till Klampaeckel, till@php.net
|
|
|
|
Berlin TestFest 2009
|