Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

TokenArrayScanner fails on php 7.0.5 #49

Closed
danez opened this issue Apr 1, 2016 · 5 comments
Closed

TokenArrayScanner fails on php 7.0.5 #49

danez opened this issue Apr 1, 2016 · 5 comments

Comments

@danez
Copy link
Contributor

danez commented Apr 1, 2016

As with PHP 7.0.5 the TokenArrayScanner is not working anymore with zend-code 2.
I have no further info, except that when using the FileScanner it does not produce any info when calling scan().

@Ocramius
Copy link
Member

Ocramius commented Apr 2, 2016

@danez was there a change from 7.0.4 to 7.0.5 that broke this, or is the change just related with PHP 7.x?

@danez
Copy link
Contributor Author

danez commented Apr 2, 2016

It was working with 7.0.4, but with 7.0.5 it does not. Not sure which change in php could have caused that. There is one where they mention variable scope, which could be. But I also couldn't really found the issue, debugging all the goto statements in the scanner is a little bit hard. When I tried debugging it seemed that inside ->scan() the $tokenType is never changing.

@Ocramius
Copy link
Member

Ocramius commented Apr 2, 2016

@danez should be brought up with php internals then: there might be a BC break that wasn't documented in the release log.

@danez
Copy link
Contributor Author

danez commented Apr 2, 2016

I reported it: https://bugs.php.net/bug.php?id=71948

@bashofmann
Copy link

The issue is apparently already fixed with https://bugs.php.net/bug.php?id=71914 and hopefully will be included in 7.0.6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants