修改 php.ini 中的 error配置下错误显示方式:将error_reporting = E_ALL 修改为 error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED 修改后重启下APCHE服务器,方可生效。