I'm new to error handling technique. I just created a custom error handler by following this manual similar to below,
<?php
public function customErrorHandler($errno, $errstr, $errfile, $errline) {
//log error
}
set_error_handler([$this, 'customErrorHandler'])
?>
This works fine.
When I set error types to false then my custom error handler method doesn't get invoked! I don't know what I'm missing since new to handling errors.
<?php
public function customErrorHandler($errno, $errstr, $errfile, $errline) {
//log error
}
set_error_handler([$this, 'customErrorHandler'], false)
?>