目前在 CentOS 6.5 上运行 PHP 5.4。
我安装了 webtatic php55w 包,然后通过 PECL 安装了 PEAR+PECL 以及 redis 和 mongo,没有问题。
不久之后,我意识到 5.5 与我正在使用的框架不兼容,所以我 yum 删除了 php55w 并在它的位置安装了 php54w。
现在 pecl 命令根本不起作用。每次我发出任何 pecl 命令时,它都会产生一串非常长的错误(缩写......最多重复几十次):
Warning: Invalid argument supplied for foreach() in Command.php on line 259
Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259
...etc etc etc...
Notice: Undefined index: honorsbaseinstall in Role.php on line 180
Notice: Undefined index: honorsbaseinstall in Role.php on line 180
...etc etc etc...
Notice: Undefined index: installable …
Run Code Online (Sandbox Code Playgroud)