1--TEST-- 2Test parameter handling in socket_listen(). 3--EXTENSIONS-- 4sockets 5--SKIPIF-- 6<?php 7if (substr(PHP_OS, 0, 3) == 'WIN') { 8 die('skip.. Not valid for Windows'); 9} 10--FILE-- 11<?php 12$socket = socket_create(AF_UNIX, SOCK_STREAM, 0); 13var_dump(socket_listen($socket)); 14?> 15--EXPECTF-- 16Warning: socket_listen(): unable to listen on socket [%d]: %s in %s on line %d 17bool(false) 18--CREDITS-- 19Till Klampaeckel, till@php.net 20Berlin TestFest 2009 21