1--TEST--
2ext/sockets - socket_create - 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    $s_w = socket_create();
15    $s_w = socket_create(AF_INET);
16    $s_w = socket_create(AF_INET, SOCK_STREAM);
17?>
18--EXPECTF--
19Warning: socket_create() expects exactly 3 parameters, 0 given in %s on line %i
20
21Warning: socket_create() expects exactly 3 parameters, 1 given in %s on line %i
22
23Warning: socket_create() expects exactly 3 parameters, 2 given in %s on line %i
24