Question
Error with PECL command in PHP7
I’ve upgraded php to version 7 and now I have problems with pecl command. When I run sudo pecl install mongo I get long list of errors:
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
Warning: Invalid argument supplied for foreach() in Command.php on line 249
Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
I’ve tried solutions from this question: https://serverfault.com/questions/589877/pecl-command-produces-long-list-of-errors but it’s not working. I’m using Ubuntu 14.04 with PHP7, I installed php-dev package
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Did you figure this out? Im having the same issue.
@mrnot4sale Nope, I eventually ended up with downgrading to PHP 5