From: Nikita Popov Date: Tue, 4 Aug 2020 14:05:11 +0000 (+0200) Subject: Suppress warning in pcntl_unshare skipif X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36a1197f121842b7d3599ebc89480c924bfcf926;p=php Suppress warning in pcntl_unshare skipif --- 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"); }