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

@@ -39,6 +39,7 @@ class setup
, 'pcntl'
, "PDO"
, "phrasea2"
, 'posix'
, "SimpleXML"
, "sockets"
, "xml"
@@ -375,7 +376,7 @@ class setup
$constraints = array();
foreach (self::$PHP_EXT as $ext) {
if ('pcntl' === $ext && 0 === stripos(strtolower(PHP_OS), 'win')) {
if (in_array($ext, array('pcntl', 'posix')) && defined('PHP_WINDOWS_VERSION_BUILD')) {
continue;
}