[pkg-php-pear] Bug#911278: [Fwd: php7cc: PHP Fatal error: Uncaught Error: Cannot instantiate interface PhpParser\Parser]

Dmitry Smirnov onlyjob at debian.org
Thu Nov 15 10:14:25 GMT 2018


On Thursday, 15 November 2018 8:22:17 AM AEDT Łukasz wrote:
> It looks like one of the dependencies (php-parser) is not backward
> compatible.
> 
> Right now, in buster/sid, it is in version 3.1.5-1, but php7cc seems to
> work only with version ~1.4 (as it is described in composer.json 
> file:
> 
> "nikic/php-parser": "~1.4",
> 
> , what means the version >= 1.4 but < 2.0.0 - https://getcomposer.org/d
> oc/articles/versions.md#tilde-version-range-)

Thanks for looking into this problem, Łukasz.


> What i did to solve the problem in my sid container:
> 
> $ echo 'deb http://deb.debian.org/debian stretch main' \
>   >> /etc/apt/sources.list
> $ apt-get update
> $ apt-get install php-parser=1.4.1-2
> 
> $ touch foo.php
> $ php7cc foo.php
> Checked 1 file in 0.002 second
> 
> (gist with Dockerfile: 
> https://gist.github.com/lbacik/ebae064b31264d5c6d9512e47f395a01)

We need to find out how to fix the package in "unstable" without downgrading 
any dependency packages. It may be necessary to produce a patch or discuss 
the matter with upstream.

-- 
Cheers,
 Dmitry Smirnov.

---

We often refuse to accept an idea merely because the way in which it has
been expressed is unsympathetic to us.
        -- Friedrich Nietzsche

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-php-pear/attachments/20181115/e629f97e/attachment.sig>


More information about the pkg-php-pear mailing list