1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/sockets/tests/socket_dontfragment_bsd.phpt

20 lines
347 B
PHP

--TEST--
IP_DONTFRAG test
--EXTENSIONS--
sockets
--SKIPIF--
<?php
if (PHP_OS != 'FreeBSD') {
die('skip For FreeBSD only');
}
?>
--FILE--
<?php
$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_bind($socket, '127.0.0.1', 5557);
$ret = socket_set_option($socket, IPPROTO_IP, IP_DONTFRAG, 1);
var_dump($ret);
?>
--EXPECT--
bool(true)