1--TEST-- 2Test if socket binds on 31338 3--EXTENSIONS-- 4sockets 5--SKIPIF-- 6<?php 7if (substr(PHP_OS, 0, 3) == 'WIN') { 8 die('skip.. Not valid for Windows'); 9} 10--FILE-- 11<?php 12$sock = socket_create_listen(31338); 13socket_getsockname($sock, $addr, $port); 14var_dump($addr, $port); 15?> 16--EXPECT-- 17string(7) "0.0.0.0" 18int(31338) 19--CREDITS-- 20Till Klampaeckel, till@php.net 21PHP Testfest Berlin 2009-05-09 22