Annotation of embedaddon/php/ext/sockets/tests/socket_listen_params.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ext/sockets - socket_listen - test with empty parameters
! 3: --CREDITS--
! 4: Florian Anderiasch
! 5: fa@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: // wrong parameter count
! 15: $s_c = socket_listen();
! 16: var_dump($s_c);
! 17: ?>
! 18: --EXPECTF--
! 19:
! 20: Warning: socket_listen() expects at least 1 parameter, 0 given in %s on line %i
! 21: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>