Skip to content

Commit

Permalink
Suppress warning in pcntl_unshare skipif
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 5, 2020
1 parent 4cc4f9c commit fcfa0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/pcntl/tests/pcntl_unshare_01.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit fcfa0a4

Please sign in to comment.