异常处理的嵌套应该是
try
{
try
{
throw new Exception('异常1');
}
catch (Exception $e1)
{
throw new Exception('异常2');
}
}
catch (Exception $e2)
{
}
try
{
try
{
throw new Exception('异常1');
}
catch (Exception $e1)
{
throw new Exception('异常2');
}
}
catch (Exception $e2)
{
}
2019-05-19
set_error_handler('test'); //使用错误处理程序函数 test
restore_error_handler(); //回收错误处理程序
restore_error_handler(); //回收错误处理程序
2018-05-23