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

Issue5592Test fails when registering an error handler in an auto_prepend_file #5845

Open
kkmuffme opened this issue May 28, 2024 · 0 comments
Labels
type/bug Something is broken

Comments

@kkmuffme
Copy link

Q A
PHPUnit version 11.1.3
PHP version 8.2.x
Installation Method both

Summary

When using php.ini auto_prepend_file where the file contains an error handler (I assume same issue with exception handlers) like

set_error_handler(static fn () => false);

test Issue5592Test fails:

-There was 1 risky test:
+There were 2 risky tests:

Current behavior

phpunit test suite fails

How to reproduce

./phpunit after adding error handler like in summary

Expected behavior

No error


This matters beyond this specific test, as the number of "risky" tests differs depending on whether or not an error/exception handler is defined in an auto_prepend_file or not.
Possibly this also happens when a PHP (PECL) extension defines an error/exception handler.

@kkmuffme kkmuffme added the type/bug Something is broken label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant