We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcfa0a4 commit 34e7d78Copy full SHA for 34e7d78
ext/pcntl/tests/pcntl_setpriority_basic.phpt
@@ -11,8 +11,8 @@ if (!extension_loaded('pcntl')) {
11
if (!function_exists('pcntl_setpriority')) {
12
die('skip pcntl_setpriority doesn\'t exist');
13
}
14
-if (!function_exists('posix_getuid') || posix_getuid() !== 0) {
15
- die('skip this functions needs to run with superuser');
+if (@pcntl_setpriority(-5) === false && pcntl_get_last_error() == PCNTL_EACCES) {
+ die('skip this function needs to run with CAP_SYS_NICE privileges');
16
17
?>
18
--FILE--
0 commit comments