1--TEST--
2Test parameter handling in socket_select().
3--EXTENSIONS--
4sockets
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) == 'WIN') {
8    die('skip.. Not valid for Windows');
9}
10--FILE--
11<?php
12$sockets = array();
13$domain = AF_UNIX;
14socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
15
16$write  = null;
17$except = null;
18$time   = -1;
19var_dump(socket_select($sockets, $write, $except, $time));
20?>
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