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:31854"; 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--CLEAN-- 14<?php 15unset($serverUri); 16unset($sock); 17?> 18--EXPECT-- 19string(15) "127.0.0.1:31854" 20bool(false) 21