[php-src] PR #13686: Restore error handler after running it

From: Date: Tue, 12 Mar 2024 15:51:06 +0000
Subject: [php-src] PR #13686: Restore error handler after running it
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25388@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13686 Author: iluuu1994 Symfony relies on finding the exception handler in the handler stack. There's currently no clean API to find it, so they pop all the handlers, and push them again once the stack is empty. This PR attempts to minimize the BC break by pushing the current handler onto the stack and clearing the current handler, and restoring it once it has finished. This is essentially equivalent to set_exception_handler(null) and restore_exception_handler(). restore_exception_handler() however is only called if the exception handler is still unset. If the handler has pushed a new handler in the meantime, we assume it knows what it's doing. Fixes GH-13446 /cc @nicolas-grekas Does this solve your problem?

« previous php.git-pulls (#25388) next »