PHP 函数 restore_error_handler()
PHP 函数 restore_error_handler()
<?php
function unserialize_handler($errno, $errstr) {
echo "Invalid hello value.\n";
}
$hello = 'abc';
set_error_handler('unserialize_handler');
$original = unserialize($hello);
restore_error_handler();
?>