mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
fix #647 check pcntl extension
This commit is contained in:
@@ -34,6 +34,7 @@ class setup
|
|||||||
, "libxml"
|
, "libxml"
|
||||||
, "mbstring"
|
, "mbstring"
|
||||||
, "mysql"
|
, "mysql"
|
||||||
|
, 'pcntl'
|
||||||
, "PDO"
|
, "PDO"
|
||||||
, "phrasea2"
|
, "phrasea2"
|
||||||
, "SimpleXML"
|
, "SimpleXML"
|
||||||
@@ -516,9 +517,14 @@ class setup
|
|||||||
{
|
{
|
||||||
$constraints = array();
|
$constraints = array();
|
||||||
foreach (self::$PHP_EXT as $ext) {
|
foreach (self::$PHP_EXT as $ext) {
|
||||||
|
|
||||||
|
if('pcntl' === $ext && 0 === stripos(strtolower(PHP_OS), 'win')){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (extension_loaded($ext) !== true) {
|
if (extension_loaded($ext) !== true) {
|
||||||
$blocker = true;
|
$blocker = true;
|
||||||
if (in_array($ext, array('ftp', 'twig', 'gmagick', 'imagick'))) {
|
if (in_array($ext, array('ftp', 'twig', 'gmagick', 'imagick', 'pcntl'))) {
|
||||||
$blocker = false;
|
$blocker = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user