summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/bug49341.phpt
blob: 961b5e7bc8c926714539cc6e5248baa9f316aeac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #49341: add SO_REUSEPORT support for socket_set_option()
--SKIPIF--
<?php
if (!extension_loaded('sockets')) {
    die('skip sockets extension not available.');
}
if (PHP_OS !== 'Darwin' && false === strpos(PHP_OS, 'BSD')) {
    die('skip is not *BSD.');
}
--FILE--
<?php
var_dump(defined('SO_REUSEPORT'));
--EXPECTF--
bool(true)