unexpected 'new' (T_NEW) in /usr/share/php/HTTP/Client.php on line 179

Bug #1702281 reported by Patrick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-pear (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,
On a newly installed Ubuntu 16.04.2 LTS, Release: 16.04

With PHP 7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )
 Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.18-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies,

apt-cache policy php:
  Installed: 1:7.0+35ubuntu6
  Candidate: 1:7.0+35ubuntu6
  Version table:
 *** 1:7.0+35ubuntu6 500
        500 http://mirrors.online.net/ubuntu xenial/main amd64 Packages
        500 http://mirrors.online.net/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status

and php7.0-fpm:
apt-cache policy php7.0-fpm :
  Installed: 7.0.18-0ubuntu0.16.04.1
  Candidate: 7.0.18-0ubuntu0.16.04.1
  Version table:
 *** 7.0.18-0ubuntu0.16.04.1 500
        500 http://mirrors.online.net/ubuntu xenial-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     7.0.15-0ubuntu0.16.04.4 500
        500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
     7.0.4-7ubuntu2 500
        500 http://mirrors.online.net/ubuntu xenial/universe amd64 Packages

and with php-pear 1.10.1+submodules+notgz-4
apt-cache policy php-pear
php-pear:
  Installed: 1:1.10.1+submodules+notgz-6
  Candidate: 1:1.10.1+submodules+notgz-6
  Version table:
 *** 1:1.10.1+submodules+notgz-6 500
        500 http://mirrors.online.net/ubuntu xenial/main amd64 Packages
        500 http://mirrors.online.net/ubuntu xenial/main i386 Packages
        100 /var/lib/dpkg/status

I got thid error :

[Tue Jul 04 12:57:12.592765 2017] [proxy_fcgi:error] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/php/HTTP/Client.php on line 179'

Tags: xenial
tags: added: xenial
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.