Jump to content
新域网络技术论坛

PHP7 使用pecl安装组件报错解决方式


Jamers
 Share

Recommended Posts

顺便把安装方式也一并添加一下吧。

 

报错如下:

Warning: Invalid argument supplied for foreach() in Command.php on line 249

Warning: Invalid argument supplied for foreach() in /usr/local/share/pear/PEAR/Command.php on line 249
curl -O http://pear.php.net/go-pear.phar
php go-pear.phar

一般安装在: /usr/local/bin/pecl

ee `which pecl`
到最后一行,把-n 去掉就可以了。
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...