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
13var_dump(socket_listen(null));
14$socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
15var_dump(socket_listen($socket));
16--EXPECTF--
17Warning: socket_listen() expects parameter 1 to be resource, null given in %s on line %d
18NULL
19
20Warning: socket_listen(): unable to listen on socket [%d]: Invalid argument in %s on line %d
21bool(false)
22--CREDITS--
23Till Klampaeckel, till@php.net
24Berlin TestFest 2009
25