mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
e3f0d03452
Led to random characters visible on socket id on macOs. Close GH-13606
16 lines
393 B
PHP
16 lines
393 B
PHP
--TEST--
|
|
GH-13603 - socket_getsockname - invalid characters
|
|
--EXTENSIONS--
|
|
sockets
|
|
--FILE--
|
|
<?php
|
|
$socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
|
|
socket_bind($socket, 'sn.socp');
|
|
socket_listen($socket);
|
|
socket_getsockname($socket, $address);
|
|
var_dump($address);
|
|
socket_close($socket);
|
|
unlink($address);
|
|
--EXPECT--
|
|
string(7) "sn.socp"
|