restore_error_handler

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Restores the previous error handler function
<?php restore_error_handler(): true
<?php         while (true) {

            $previousHandler = set_error_handler(static fn () => null);



            restore_error_handler();



            if ($previousHandler === null) {

                break;
<?php                 break;

            }



            restore_error_handler();

        }



        if (class_exists(ErrorHandler::class)) {