Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for recent PHP versions #419

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

acran
Copy link

@acran acran commented Feb 24, 2021

This fixes some issues with recent versions of PHP:

resolves #402 (by including it)
resolves #417
fixes #412
fixes #415

vcampitelli and others added 3 commits March 21, 2019 15:10
ReflectionNamedType::__toString() was deprecated in PHP 7.1.0 in favor
of ReflectionNamedType::getName() and the deprecation warning will break
the JSON output
parsing files including broken require_once (e.g. path can not be
resolved) will trigger an error which is handled by onError converting
it to an ErrorException and throwing it again.
This *should* then be caught by onException to convert and print this as
JSON and exit. But due to https://bugs.php.net/bug.php?id=66216 this
does not happen and the parser exits an empty output which results in
another Exception in php-proxy.coffee trying to parse the empty string
as JSON.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package does not work with PHP 7.4.6 Function ReflectionType::__toString() is deprecated
2 participants