1--TEST-- 2Test parameter handling in socket_select(). 3--DESCRIPTION-- 4usec > 999999 5--SKIPIF-- 6<?php 7if (!extension_loaded('sockets')) { 8 die('SKIP The sockets extension is not loaded.'); 9} 10--FILE-- 11<?php 12$sockets = array(); 13if (strtolower(substr(PHP_OS, 0, 3)) == 'win') { 14 $domain = AF_INET; 15} else { 16 $domain = AF_UNIX; 17} 18socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 19 20$write = null; 21$except = null; 22$time = 0; 23$usec = 2000000; 24var_dump(socket_select($sockets, $write, $except, $time, $usec)); 25--EXPECT-- 26int(0) 27--CREDITS-- 28Till Klampaeckel, till@php.net 29Berlin TestFest 2009 30