Only check for pcntl on cli SAPI, fixes #8828
parent
df0cada93f
commit
755a73baa9
|
@ -588,7 +588,11 @@ EOF;
|
||||||
|
|
||||||
if (preg_match('{^ext-(.+)$}iD', $link->getTarget(), $match)) {
|
if (preg_match('{^ext-(.+)$}iD', $link->getTarget(), $match)) {
|
||||||
$extension = var_export($match[1], true);
|
$extension = var_export($match[1], true);
|
||||||
$requiredExtensions[$extension] = "extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
if ($match[1] === 'pcntl') {
|
||||||
|
$requiredExtensions[$extension] = "PHP_SAPI !== 'cli' || extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
||||||
|
} else {
|
||||||
|
$requiredExtensions[$extension] = "extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue