1--TEST--
2Test parameter handling in socket_select().
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) != 'WIN') {
6	die('skip.. Not valid for non Windows');
7}
8if (!extension_loaded('sockets')) {
9    die('SKIP The sockets extension is not loaded.');
10}
11--FILE--
12<?php
13$sockets = array();
14$domain = AF_INET;
15socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
16
17$write  = null;
18$except = null;
19$time   = -1;
20var_dump(socket_select($sockets, $write, $except, $time));
21--EXPECT--
22int(0)
23--CREDITS--
24Till Klampaeckel, till@php.net
25Berlin TestFest 2009
26