Error install pecl/raphf and propro

DevLoots picture DevLoots · Apr 11, 2016 · Viewed 8.6k times · Source

I have updated php5.5 to php7.0.

I try to run this commande :

pecl install pecl/raphf

But I obtain this error :

Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/php/PEAR/Frontend.php on line 91

How I can install :

pecl install pecl/raphf
pecl install pecl/propro

Answer

Rkalkani picture Rkalkani · Sep 6, 2016

Try update PEAR:

$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar

Original Answer in GitHub Issue