屏蔽PHP错误

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33733970/article/details/90140609
<?php
//禁用错误报告
error_reporting(0);
 
//报告运行时错误
error_reporting(E_ERROR | E_WARNING | E_PARSE);  
 
//报告所有错误
error_reporting(E_ALL);  
 
error_reporting(7);
/*
设置php错误检测级别
E_ERROR - 致命性运行时错 (1)
E_WARNING - 运行时警告(非致命性错)(2)
E_PARSE - 编译时解析错误 (4)
1+2+4 = 7
*/
?>

上面这些就够用了!
https://blog.csdn.net/jiax_gg/article/details/80371448

猜你喜欢

转载自blog.csdn.net/qq_33733970/article/details/90140609