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 = __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);
17--CLEAN--
18<?php
19unlink(__DIR__ . '/bug74556.sock');
20--EXPECT--
21bool(false)
22bool(false)
23