-
Notifications
You must be signed in to change notification settings - Fork 110
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
Uncatchable fatal error: Multiple final modifiers are not allowed (emitted by parse_code()) #78
Comments
Similar issues noticed: halt03.php (__HALT_COMPILER must be in top level) |
Yeah, we should either change these into exceptions or, if possible, try to generate them during compilation. This will require some larger upstream changes though, so in the best case only for 7.2. |
Filed https://bugs.php.net/bug.php?id=75218 to track this (Didn't see anything similar in php.net when I checked) |
I'm closing this in favor of the upstream report. |
This has been fixed in PHP and I've added a test to verify the fix for php-ast in 60acf78. |
This was observed in php 7.1.
Is there any way to make this into a catchable
\Error
?The fact that it's uncatchable may affect some applications
(Noticed when running this extension on the test phpt files in php-src)
The text was updated successfully, but these errors were encountered: