1--TEST-- 2Bug #74556 stream_socket_get_name() on unix socket returns "\0" 3--SKIPIF-- 4<?php 5if (!strncasecmp(PHP_OS, 'WIN', 3)) echo "skip Unix Only"; 6?> 7--FILE-- 8<?php 9 10$sock = tempnam(sys_get_temp_dir(), 'bug74556') . '.sock'; 11$s = stream_socket_server("unix://$sock"); 12$c = stream_socket_client("unix://$sock"); 13 14var_dump( 15 stream_socket_get_name($s, true), 16 stream_socket_get_name($c, false) 17); 18unlink($sock); 19?> 20--EXPECT-- 21bool(false) 22bool(false) 23