On 11.02.2025 14:18, Arnaud Le Blanc wrote:
At the moment, there is no direct way to fetch the currently
registered error or exception handlers. Users who need to inspect
these handlers must resort to a workaround that temporarily sets a new
handler and then immediately restores the previous one:

     $current_error_handler = set_error_handler('valid_callback');
     restore_error_handler();

This feels hackish and is error-prone.

Sounds good to me, straightforward clean-up of a weird API.

Best,
Jordi

--
Jordi Boggiano
@seldaek - https://seld.be

Reply via email to