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.
2 parents 645ea22 + 4f044e9 commit 88f6b52Copy full SHA for 88f6b52
ext/standard/tests/general_functions/proc_nice_basic.phpt
@@ -19,7 +19,7 @@ if ($exit_code !== 0) {
19
function getNice($id)
20
{
21
$res = shell_exec('ps -p ' . $id .' -o "pid,nice"');
22
- preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(\d+)/m', $res, $matches);
+ preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(-?\d+)/m', $res, $matches);
23
if (count($matches) > 2)
24
return $matches[2];
25
else
0 commit comments