Php 7 + pear

pppplus

Verified User
Joined
Dec 19, 2008
Messages
524
Hi

I've a problem
I've PHP 7 (+ PHP 5.6) installed.

I need to use pear, but I've a problem with PHP 7.
PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/local/lib/php/PEAR/Frontend.php on line 91

I suppose I should use PEAR installed in /usr/local/php70/lib/php/PEAR, but how to change pear path ?
Is there a file to do this ?

I can't use
Code:
pear config-set php_dir /usr/local/php70/lib/php
(same error as before)

I try to add the path in php.ini, but nothing change.

Have you a solution ?
Thanks
Hubert
 
Thanks eEitEr

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

How to specify another path ?


=> problem with this version of Pear is all "&new" in old version of Pear.

I don't find how to put this path /usr/local/php70/lib/php in ssh
 
The error I write in my previous post.

PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/local/lib/php/PEAR/Frontend.php on line 91
 
Code:
# locate pear | grep bin/pear$
/usr/local/bin/pear
/usr/local/php56/bin/pear
/usr/local/php70/bin/pear

Always same error after updatedb
 
I did not suggest a fix yet, the commands just showed full path to pear instances on your server.
So try to run the command with full path and see results.
 
Any Solution? i am facing same issue???
/usr/local/bin/pear -V also gives same warning but other two shows the resuly
PEAR Version: 1.10.1
PHP Version: 7.0.2
Zend Engine Version: 3.0.0

What to do now???
 
not actually.
I just use another way to send emails. It's a development server, so it's not urgent actually for me.
 
Same here

[root@server ~]# pear -V
PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/local/lib/php/PEAR/Frontend.php on line 91
[root@server ~]# updatedb
locate pear | grep bin/pear$
[root@server ~]# locate pear | grep bin/pear$
/usr/local/bin/pear
/usr/local/php55/bin/pear
/usr/local/php56/bin/pear
/usr/local/php70/bin/pear
/var/www/html/roundcubemail-1.1.4/vendor/bin/pear
/var/www/html/roundcubemail-1.1.4/vendor/pear-pear.php.net/PEAR/bin/pear


Any fix?
 
Back
Top