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--FILE--
7<?php
8
9$sock = tempnam(sys_get_temp_dir(), 'bug74556') . '.sock';
10$s = stream_socket_server("unix://$sock");
11$c = stream_socket_client("unix://$sock");
12
13var_dump(
14    stream_socket_get_name($s, true),
15    stream_socket_get_name($c, false)
16);
17unlink($sock);
18--EXPECT--
19bool(false)
20bool(false)
21