restore_exception_handler

Supported Versions: PHP 5, PHP 7, PHP 8
Restores the previously defined exception handler function
<?php restore_exception_handler(): true
<?php         while (true) {

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



            restore_exception_handler();



            if ($previousHandler === null) {

                break;
<?php                 break;

            }



            restore_exception_handler();

        }



        while (true) {