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?> 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