Skip to content

Commit 36a1197

Browse files
committed
Suppress warning in pcntl_unshare skipif
1 parent b0d1394 commit 36a1197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcntl/tests/pcntl_unshare_01.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (!extension_loaded("pcntl")) die("skip");
66
if (!extension_loaded("posix")) die("skip posix extension not available");
77
if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available");
88
if (!defined("CLONE_NEWUSER")) die("skip flag unavailable");
9-
if (pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM) {
9+
if (@pcntl_unshare(CLONE_NEWUSER) == false && pcntl_get_last_error() == PCNTL_EPERM) {
1010
die("skip Insufficient previleges to use CLONE_NEWUSER");
1111
}
1212

0 commit comments

Comments
 (0)