Skip to content

Commit

Permalink
Merge pull request composer#8950 from Ayesh/issue/8946
Browse files Browse the repository at this point in the history
Platform Check: Add a special case for `zend-opcache`
  • Loading branch information
Seldaek authored Jun 5, 2020
2 parents 627afe7 + 71ddc48 commit 56b4667
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Composer/Autoload/AutoloadGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ protected function getPlatformCheck($packageMap, array $ignorePlatformReqs)
}
}

if ($match[1] === 'zend-opcache') {
$match[1] = 'zend opcache';
}

$extension = var_export($match[1], true);
if ($match[1] === 'pcntl' || $match[1] === 'readline') {
$requiredExtensions[$extension] = "PHP_SAPI !== 'cli' || extension_loaded($extension) || \$missingExtensions[] = $extension;\n";
Expand Down

0 comments on commit 56b4667

Please sign in to comment.