Fix #990 : add check on posix support for pcntl

This commit is contained in:
Romain Neutron
2012-11-05 15:16:33 +01:00
parent b195375614
commit d25bae42a7
3 changed files with 13 additions and 3 deletions

View File

@@ -193,6 +193,16 @@ class task_manager
return $ret;
}
/**
* Returns true if Pcntl posix supported is enabled, false otherwise
*
* @return Boolean
*/
public static function isPosixPcntlSupported()
{
return extension_loaded('pcntl') && extension_loaded('posix');
}
public static function getAvailableTasks()
{
$taskdir = array(