]> granicus.if.org Git - php/commitdiff
The SO_PASSCRED constant is conditionally defined
authorThomas Punt <tpunt@php.net>
Sun, 29 Apr 2018 16:34:03 +0000 (17:34 +0100)
committerThomas Punt <tpunt@php.net>
Sun, 29 Apr 2018 16:34:03 +0000 (17:34 +0100)
ext/sockets/tests/socket_cmsg_credentials.phpt

index 922be0bb37b2eb57b2929c40580db13642c98e73..6fa2517db2e2f628facad6a00d2cd683fc2108b3 100644 (file)
@@ -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";