1--TEST--
2ext/sockets - socket_bind - test with empty parameters
3--CREDITS--
4Florian Anderiasch
5fa@php.net
6--SKIPIF--
7<?php
8    if (!extension_loaded('sockets')) {
9        die('skip - sockets extension not available.');
10    }
11?>
12--FILE--
13<?php
14    $rand = rand(1,999);
15    $s_c = socket_create_listen(31330+$rand);
16    $s_w = socket_bind();
17    var_dump($s_w);
18    $s_w = socket_bind($s_c);
19    var_dump($s_w);
20    socket_close($s_c);
21
22?>
23--EXPECTF--
24
25Warning: socket_bind() expects at least 2 parameters, 0 given in %s on line %i
26NULL
27
28Warning: socket_bind() expects at least 2 parameters, 1 given in %s on line %i
29NULL
30