1--TEST--
2Test parameter handling in socket_select().
3--EXTENSIONS--
4sockets
5--FILE--
6<?php
7$sockets = array();
8if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
9    $domain = AF_INET;
10} else {
11    $domain = AF_UNIX;
12}
13socket_create_pair($domain, SOCK_STREAM, 0, $sockets);
14
15$write  = null;
16$except = null;
17$ref =& $sockets[0]; // bug #78038
18var_dump(socket_select($sockets, $write, $except, 0));
19?>
20--EXPECT--
21int(0)
22--CREDITS--
23Till Klampaeckel, till@php.net
24Berlin TestFest 2009
25