I joined this crazy company as a Site Administrator. Now I did some changes to my db configurations which have impacted the PHP scripts execution.
Strange part is P
If you have Xdebug installed and enabled (in development, you should) then you can set the xdebug.scream configuration option, which disables the @-operator.
Alternatively, the scream PECL extension also disables the @-operator (and that's all it does).
Basically you install the extension then set the scream.enabled
ini setting to true/on.
Muted errors are still visible for the handler installed via set_error_handler
. So you can just add something like this to your bootstrap file:
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
echo "$errstr at $errfile($errline)\n";
});
or, better,
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
throw new ErrorException($errstr, $errno, 1, $errfile, $errline);
});
which also would display the stack.