Annotation of embedaddon/php/ext/sockets/tests/socket_create_listen.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test if socket binds on 31338
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('sockets')) {
! 6: die('SKIP The sockets extension is not loaded.');
! 7: }
! 8: --FILE--
! 9: <?php
! 10: $sock = socket_create_listen(31338);
! 11: socket_getsockname($sock, $addr, $port);
! 12: var_dump($addr, $port);
! 13: --EXPECT--
! 14: string(7) "0.0.0.0"
! 15: int(31338)
! 16: --CREDITS--
! 17: Till Klampaeckel, till@php.net
! 18: PHP Testfest Berlin 2009-05-09
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>