<?php
$s = stream_socket_server('unix:///tmp/demo.sock');
$c = stream_socket_client('unix:///tmp/demo.sock');
var_dump(
stream_socket_get_name($s, false),
stream_socket_get_name($c, true)
);
var_dump(
stream_socket_get_name($s, true),
stream_socket_get_name($c, false)
);
- Output for 7.0.21 - 7.0.33, 7.1.7 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- string(14) "/tmp/demo.sock"
string(14) "/tmp/demo.sock"
bool(false)
bool(false)
- Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- string(14) "/tmp/demo.sock"
string(14) "/tmp/demo.sock"
bool(false)
string(1) " "
preferences:
226.76 ms | 402 KiB | 300 Q