1--TEST--
2Test if socket_create_listen throws E_WARNING with wrong parameters.
3--SKIPIF--
4<?php
5if (!extension_loaded('sockets')) {
6    die('SKIP The sockets extension is not loaded.');
7}
8--FILE--
9<?php
10$sock1 = socket_create_listen(array());
11$sock2 = socket_create_listen(31337, array());
12--EXPECTF--
13Warning: socket_create_listen() expects parameter 1 to be integer, array given in %s on line %d
14
15Warning: socket_create_listen() expects parameter 2 to be integer, array given in %s on line %d
16--CREDITS--
17Till Klampaeckel, till@php.net
18PHP Testfest Berlin 2009-05-09
19