1--TEST--
2Test parameter handling in socket_select().
3--DESCRIPTION--
4Time must be long, otherwise it's casted.
5--SKIPIF--
6<?php
7if (!extension_loaded('sockets')) {
8    die('SKIP The sockets extension is not loaded.');
9}
10--FILE--
11<?php
12$sockets = array();
13if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
14    $domain = AF_INET;
15} else {
16    $domain = AF_UNIX;
17}
18socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
19
20$write  = null;
21$except = null;
22$time   = array();
23var_dump(socket_select($sockets, $write, $except, $time));
24--EXPECT--
25int(0)
26--CREDITS--
27Till Klampaeckel, till@php.net
28Berlin TestFest 2009
29