1--TEST-- 2Test parameter handling in socket_select(). 3--SKIPIF-- 4<?php 5if (!extension_loaded('sockets')) { 6 die('SKIP The sockets extension is not loaded.'); 7} 8--FILE-- 9<?php 10$sockets = null; 11$write = null; 12$except = null; 13$time = 0; 14var_dump(socket_select($sockets, $write, $except, $time)); 15socket_select($sockets, $write, $except); 16--EXPECTF-- 17Warning: socket_select(): no resource arrays were passed to select in %s on line %d 18bool(false) 19 20Warning: socket_select() expects at least 4 parameters, 3 given in %s on line %d 21--CREDITS-- 22Till Klampaeckel, till@php.net 23Berlin TestFest 2009 24