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--SKIPIF-- 6<?php 7if (phpversion() < "5.3.0") { 8 die('SKIP php version so lower.'); 9} 10?> 11--FILE-- 12<?php 13$serverUri = "tcp://127.0.0.1:31854"; 14$sock = stream_socket_server($serverUri, $errno, $errstr); 15 16var_dump(stream_socket_get_name($sock, false)); 17var_dump(stream_socket_get_name($sock, true)); 18?> 19--CLEAN-- 20<?php 21unset($serverUri); 22unset($sock); 23?> 24--EXPECT-- 25string(15) "127.0.0.1:31854" 26bool(false) 27