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 09:46:07 +0200 |
| commit | 36a1197f121842b7d3599ebc89480c924bfcf926 (patch) | |
| tree | 061948483a37461fe224e4d2a1f52cfbe02ccba6 /ext/pcntl/tests | |
| parent | b0d139456aad9921d30ba8dfd32fc6cac79dedf9 (diff) | |
| download | php-git-36a1197f121842b7d3599ebc89480c924bfcf926.tar.gz | |
Suppress warning in pcntl_unshare skipif
Diffstat (limited to 'ext/pcntl/tests')
| -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"); } |
