<?php
function warning_handler($errno, $errstr) {
return true;
}
set_error_handler("warning_handler", E_WARNING);
var_dump(1.0/0.0); // w/o using @ or messing with error_reporting
Fatal error: Uncaught DivisionByZeroError: Division by zero in /in/QeC8E:9
Stack trace:
#0 {main}
thrown in /in/QeC8E on line 9
Process exited with code 255.