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