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; 20$ref =& $sockets[0]; // bug #78038 21var_dump(socket_select($sockets, $write, $except, 0)); 22--EXPECT-- 23int(0) 24--CREDITS-- 25Till Klampaeckel, till@php.net 26Berlin TestFest 2009 27