所以我听说 require 会产生一个致命错误(E_COMPILE_ERROR)并停止脚本。
它确实停止了脚本,我得到了空白页。但是我检查了错误日志并没有发现错误。(Nginx)
我试图要求“../lib/Smarty.class.php”,但我没有上传 lib 文件夹。我期待看到致命错误,但没有。
为什么?
我有
error_reporting(E_ALL);
在我的脚本中也是如此。
我错过了什么?
所以我听说 require 会产生一个致命错误(E_COMPILE_ERROR)并停止脚本。
它确实停止了脚本,我得到了空白页。但是我检查了错误日志并没有发现错误。(Nginx)
我试图要求“../lib/Smarty.class.php”,但我没有上传 lib 文件夹。我期待看到致命错误,但没有。
为什么?
我有
error_reporting(E_ALL);
在我的脚本中也是如此。
我错过了什么?
用于将显示错误设置为 1,然后在 error_reporting...
// change settings for error handler to show errors
// $this setup is used for checking errors for development to be shown....
ini_set('display_errors', 1);
error_reporting(E_ALL);
//then if you want to have error handler use
error_log(); //to log your errors within a specify location..
我错过了什么?