Only check for pcntl on cli SAPI, fixes #8828
parent
df0cada93f
commit
755a73baa9
|
@ -588,10 +588,14 @@ 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);
|
||||||
|
if ($match[1] === 'pcntl') {
|
||||||
|
$requiredExtensions[$extension] = "PHP_SAPI !== 'cli' || extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
||||||
|
} else {
|
||||||
$requiredExtensions[$extension] = "extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
$requiredExtensions[$extension] = "extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ksort($requiredExtensions);
|
ksort($requiredExtensions);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue