Skip to content

Commit 7043e2a

Browse files
committed
add freebsd test
1 parent 0ddc81c commit 7043e2a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
IP_DONTFRAG test
3+
--EXTENSIONS--
4+
sockets
5+
--SKIPIF--
6+
<?php
7+
if (PHP_OS != 'FreeBSD') {
8+
die('skip For FreeBSD only');
9+
}
10+
?>
11+
--FILE--
12+
<?php
13+
$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
14+
socket_bind($socket, '127.0.0.1', 5557);
15+
$ret = socket_set_option($socket, IPPROTO_IP, IP_DONTFRAG, 1);
16+
var_dump($ret);
17+
?>
18+
--EXPECT--
19+
bool(true)

0 commit comments

Comments
 (0)