Skip to content

Commit 35713ef

Browse files
committed
The SO_PASSCRED constant is conditionally defined
1 parent 7f090ac commit 35713ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/sockets/tests/socket_cmsg_credentials.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ die('skip not for Microsoft Windows');
1111
if (strtolower(substr(PHP_OS, 0, 3)) == 'aix') {
1212
die('skip not for AIX');
1313
}
14+
if (!defined('SO_PASSCRED')) {
15+
die('skip SO_PASSCRED is not defined');
16+
}
1417
--CLEAN--
1518
<?php
1619
$path = __DIR__ . "/unix_sock";

0 commit comments

Comments
 (0)