mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
0f20970216
E.g. Notice: stream_socket_server(): socket path exceeded the maximum allowed length of 108 bytes and was truncated in /builddir/build/BUILD/php-src-32d7fa6f74b56fed8124d4dea0f98f0f9964a64e/ext/standard/tests/streams/bug74556.php on line 4
21 lines
450 B
PHP
21 lines
450 B
PHP
--TEST--
|
|
Bug #74556 stream_socket_get_name() on unix socket returns "\0"
|
|
--SKIPIF--
|
|
<?php
|
|
if (!strncasecmp(PHP_OS, 'WIN', 3)) echo "skip Unix Only";
|
|
--FILE--
|
|
<?php
|
|
|
|
$sock = tempnam(sys_get_temp_dir(), 'bug74556') . '.sock';
|
|
$s = stream_socket_server("unix://$sock");
|
|
$c = stream_socket_client("unix://$sock");
|
|
|
|
var_dump(
|
|
stream_socket_get_name($s, true),
|
|
stream_socket_get_name($c, false)
|
|
);
|
|
unlink($sock);
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|