非常に奇妙な状況があります。以下に示すコードは、PHP でエラーを出力しないはずです。
try {
throw new Exception('foo');
} catch(Exception $e) {
// here could be some custom functions to handle errors
die();
}
私のコンピューターでは印刷されます
( ! ) SCREAM: Error suppression ignored for
( ! ) Exception: foo. in D:\wamp\www\index.php on line 4
なんで?どのphp iniオプションがそれを行いますか?