xref: /PHP-8.2/ext/sockets/tests/gh13603.phpt (revision e3f0d034)
1--TEST--
2GH-13603 -  socket_getsockname - invalid characters
3--EXTENSIONS--
4sockets
5--FILE--
6<?php
7        $socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
8        socket_bind($socket, 'sn.socp');
9        socket_listen($socket);
10        socket_getsockname($socket, $address);
11        var_dump($address);
12        socket_close($socket);
13        unlink($address);
14--EXPECT--
15string(7) "sn.socp"
16