开启错误报告,屏蔽 NOTICE 和 WARNING
ini_set("display_errors", "On");error_reporting(E_ALL^E_NOTICE^E_WARNING);
//禁用错误报告
error_reporting(0);