为什么作曲家不使用 OPcache?

Why won't composer use OPcache?

我加了

"require": {
    "ext-opcache": "*",

composer.json 对于 eDirectory Symfony 2.8 应用程序,但它给了我一个错误:

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested PHP extension ext-opcache * is missing from your system. Install or enable PHP's opcache extension.

但是,我确实安装了OPcache!

$ php -r "phpinfo();" | grep OPcache -a3
Zend OPcache

Opcode Caching => Up and Running
Optimization => Enabled

它不会抱怨 "ext-gd": "*""ext-mbstring": "*"

PHP 5.6.27

扩展名是 Zend OPcache 而不是 OPcache。您需要使用全名要求它:

"ext-zend-opcache": "*"