You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to debug some failing tests of the getsentry/sentry-php package I found out that PHPUnit since a while calls the parser with non-emulative lexing and that that code is executed inside a register_shutdown_function callback. Unluckily, the Lexer::startLexing() method calls error_clear_last() which clears the last catched fatal error and thus the next callback does not know anything about it anymore. I cannot find any call to error_get_last() in the source code and so I cannot think about what is the purpose of clearing the error, so I was wondering if it would be possible to remove that function call
The text was updated successfully, but these errors were encountered:
While trying to debug some failing tests of the
getsentry/sentry-php
package I found out that PHPUnit since a while calls the parser with non-emulative lexing and that that code is executed inside aregister_shutdown_function
callback. Unluckily, the Lexer::startLexing() method callserror_clear_last()
which clears the last catched fatal error and thus the next callback does not know anything about it anymore. I cannot find any call toerror_get_last()
in the source code and so I cannot think about what is the purpose of clearing the error, so I was wondering if it would be possible to remove that function callThe text was updated successfully, but these errors were encountered: