summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_accept-wrongparams.phpt
blob: 644690d61c45a4caebab081e2ff1dc4b4048b054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Test parameter handling in socket_accept()
--SKIPIF--
<?php
if (!extension_loaded('sockets')) {
    die('SKIP The sockets extension is not loaded.');
}
--FILE--
<?php
var_dump(socket_accept(null));
--CREDITS--
Till Klampaeckel, till@php.net
Berlin TestFest 2009
--EXPECTF--
Warning: socket_accept() expects parameter 1 to be resource, null given in %s on line %d
NULL