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

PHP 7 support #182

Closed
15 tasks done
nikic opened this issue Mar 12, 2015 · 2 comments
Closed
15 tasks done

PHP 7 support #182

nikic opened this issue Mar 12, 2015 · 2 comments

Comments

@nikic
Copy link
Owner

nikic commented Mar 12, 2015

BC compatible syntax changes:

BC incompatible syntax changes:

API changes:

  • Create separate PHP 5 and PHP 7 parsers
  • Create wrapping parser that tries using both PHP 5 and PHP 7 in a specified order
  • Create factory/builder that creates the proper lexer and parser instances in some simple way
  • Document all the things
@avindra
Copy link

avindra commented Mar 26, 2015

Linking related issue in other project:

bobthecow/psysh#185

@nikic
Copy link
Owner Author

nikic commented Jun 5, 2015

For the record, if you're hitting an error like Cannot use 'String' as class name as it is reserved running on PHP 7: All you need to do is update to version 1.3 and if that doesn't fix it replace your usages of String with String_.

This issue is only about support parsing of PHP 7, not running on PHP 7 (which should already fully work).

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

No branches or pull requests

2 participants