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 = array(); 11if (strtolower(substr(PHP_OS, 0, 3)) == 'win') { 12 $domain = AF_INET; 13} else { 14 $domain = AF_UNIX; 15} 16socket_create_pair($domain, SOCK_STREAM, 0, $sockets); 17 18$write = null; 19$except = null; 20var_dump(socket_select($sockets, $write, $except, 0)); 21--EXPECT-- 22int(0) 23--CREDITS-- 24Till Klampaeckel, till@php.net 25Berlin TestFest 2009 26