作者:Smile--麦芽 | 来源:互联网 | 2022-12-10 08:22
我补充道
"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
1> rob006..:
扩展名Zend OPcache
不是OPcache
.您需要使用全名:
"ext-zend-opcache": "*"