Skip to content

Commit ce881d6

Browse files
committed
add test
1 parent 90002f1 commit ce881d6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ext/sockets/tests/gh13603.phpt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--TEST--
2+
GH-13603 - socket_getsockname - invalid characters
3+
--EXTENSIONS--
4+
sockets
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--
15+
string(7) "sn.socp"

0 commit comments

Comments
 (0)