Avoid checking for readline in non-CLI contexts, fixes #8909
parent
a40e6157de
commit
62d0443e07
|
@ -608,7 +608,7 @@ EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
$extension = var_export($match[1], true);
|
$extension = var_export($match[1], true);
|
||||||
if ($match[1] === 'pcntl') {
|
if ($match[1] === 'pcntl' || $match[1] === 'readline') {
|
||||||
$requiredExtensions[$extension] = "PHP_SAPI !== 'cli' || extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
$requiredExtensions[$extension] = "PHP_SAPI !== 'cli' || extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
||||||
} else {
|
} else {
|
||||||
$requiredExtensions[$extension] = "extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
$requiredExtensions[$extension] = "extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
|
||||||
|
|
Loading…
Reference in New Issue