diff options
author | Thomas Punt <tpunt@php.net> | 2018-04-29 17:34:03 +0100 |
---|---|---|
committer | Thomas Punt <tpunt@php.net> | 2018-04-29 17:34:03 +0100 |
commit | 35713efa025cd859f150949d9c5408f96f7564b9 (patch) | |
tree | 798f64dd75e007abf29589a3c225c2ec99c1bf9d | |
parent | 7f090ac16aff53f022926f4e77635185a247f6a6 (diff) | |
download | php-git-35713efa025cd859f150949d9c5408f96f7564b9.tar.gz |
The SO_PASSCRED constant is conditionally defined
-rw-r--r-- | ext/sockets/tests/socket_cmsg_credentials.phpt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/sockets/tests/socket_cmsg_credentials.phpt b/ext/sockets/tests/socket_cmsg_credentials.phpt index 922be0bb37..6fa2517db2 100644 --- a/ext/sockets/tests/socket_cmsg_credentials.phpt +++ b/ext/sockets/tests/socket_cmsg_credentials.phpt @@ -11,6 +11,9 @@ die('skip not for Microsoft Windows'); if (strtolower(substr(PHP_OS, 0, 3)) == 'aix') { die('skip not for AIX'); } +if (!defined('SO_PASSCRED')) { +die('skip SO_PASSCRED is not defined'); +} --CLEAN-- <?php $path = __DIR__ . "/unix_sock"; |