We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b86be2 commit 8fd79d3Copy full SHA for 8fd79d3
ext/pcntl/tests/pcntl_unshare_02.phpt
@@ -9,8 +9,11 @@ if (!defined("CLONE_NEWPID")) die("skip flag unavailable");
9
if (getenv("SKIP_ASAN")) die("skip asan chokes on this");
10
if (posix_getuid() !== 0 &&
11
(!defined("CLONE_NEWUSER") ||
12
- (pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM))) {
13
- die("skip Insufficient previleges to run test");
+ (@pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM))) {
+ die("skip Insufficient privileges for CLONE_NEWUSER");
14
+}
15
+if (@pcntl_unshare(CLONE_NEWPID) == false && pcntl_get_last_error() == PCNTL_EPERM) {
16
+ die("skip Insufficient privileges for CLONE_NEWPID");
17
}
18
19
--FILE--
0 commit comments