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