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?>
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]: %s in %s on line %d
18bool(false)
19--CREDITS--
20Till Klampaeckel, till@php.net
21Berlin TestFest 2009
22