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