Skip to content

Commit

Permalink
merge test from PHP-5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Apr 30, 2012
1 parent d80a3d9 commit a601605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/tests/general_functions/proc_nice_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
<?php
function getNice($id)
{
$res = shell_exec('ps -p ' . $id .' -o "%p %n"');
$res = shell_exec('ps -p ' . $id .' -o "pid,nice"');
preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(\d+)/m', $res, $matches);
if (count($matches) > 2)
return $matches[2];
Expand Down

0 comments on commit a601605

Please sign in to comment.