mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08:00
Suppress warning in pcntl_unshare skipif
This commit is contained in:
parent
4cc4f9c00a
commit
fcfa0a46c3
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user