diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-04 16:05:11 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 10:39:45 +0200 |
commit | fcfa0a46c325a29383881eb22439f2152c9506f6 (patch) | |
tree | a81458569c0dc5cc19879df72e29c512ce04803b | |
parent | 4cc4f9c00a4c43811074286494a621d4c9252613 (diff) | |
download | php-git-fcfa0a46c325a29383881eb22439f2152c9506f6.tar.gz |
Suppress warning in pcntl_unshare skipif
-rw-r--r-- | ext/pcntl/tests/pcntl_unshare_01.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcntl/tests/pcntl_unshare_01.phpt b/ext/pcntl/tests/pcntl_unshare_01.phpt index d914723dc1..815a3ce964 100644 --- a/ext/pcntl/tests/pcntl_unshare_01.phpt +++ b/ext/pcntl/tests/pcntl_unshare_01.phpt @@ -6,7 +6,7 @@ if (!extension_loaded("pcntl")) die("skip"); if (!extension_loaded("posix")) die("skip posix extension not available"); if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available"); if (!defined("CLONE_NEWUSER")) die("skip flag unavailable"); -if (pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM) { +if (@pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM) { die("skip Insufficient previleges to use CLONE_NEWUSER"); } |