线上环境由于都是设置 display_errors =off ,不过可以在PHP代码中加入以下代码便于调试
error_reporting(E_ALL); ini_set("display_errors",on);