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