php-src/ext/sockets/tests/socket_select-wrongparams-4.phpt

28 lines
518 B
Plaintext
Raw Normal View History

2009-05-18 02:07:36 +08:00
--TEST--
Test parameter handling in socket_select().
--DESCRIPTION--
usec > 999999
--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));
?>
2009-05-18 02:07:36 +08:00
--EXPECT--
int(0)
--CREDITS--
Till Klampaeckel, till@php.net
Berlin TestFest 2009