bool restore_error_handler ( void );
此函数在使用set_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(); ?>
这将产生以下输出-
Invalid hello value.
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)