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 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_UNIX;
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--EXPECTF--
22Warning: socket_select(): unable to select [%d]: Invalid argument in %s on line %d
23bool(false)
24--CREDITS--
25Till Klampaeckel, till@php.net
26Berlin TestFest 2009
27