The following snippet may be used under older versions of PHP to provide similar functionality. Tested only under Linux.
<?php
function _pcntl_setpriority($priority, $pid = 0)
{
$priority = (int)$priority;
$pid = (int)$pid;
if ($priority > 20 && $priority < -20) {
return False;
}
if ($pid == 0) {
$pid = getmypid();
}
return system("renice $priority -p $pid") != false;
}
?>