1--TEST--
2Test parameter handling in socket_select().
3--DESCRIPTION--
4usec > 999999
5--EXTENSIONS--
6sockets
7--FILE--
8<?php
9$sockets = array();
10if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
11    $domain = AF_INET;
12} else {
13    $domain = AF_UNIX;
14}
15socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
16
17$write  = null;
18$except = null;
19$time   = 0;
20$usec   = 2000000;
21var_dump(socket_select($sockets, $write, $except, $time, $usec));
22?>
23--EXPECT--
24int(0)
25--CREDITS--
26Till Klampaeckel, till@php.net
27Berlin TestFest 2009
28