1--TEST--
2string stream_socket_get_name ( resource $handle , bool $want_peer ) ;
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
5--FILE--
6<?php
7$serverUri = "tcp://127.0.0.1:31855";
8$sock = stream_socket_server($serverUri, $errno, $errstr);
9
10var_dump(stream_socket_get_name($sock, false));
11var_dump(stream_socket_get_name($sock, true));
12?>
13--EXPECT--
14string(15) "127.0.0.1:31855"
15bool(false)
16