AppserverIo\Appserver\ServletEngine\RequestHandler::errorHandler PHP Method

errorHandler() public method

As this method will NOT handle Fatal Errors with code E_ERROR or E_USER, so these have to be processed by the shutdown handler itself.
public errorHandler ( integer $errno, string $errstr, string $errfile, integer $errline ) : boolean
$errno integer The intern PHP error number
$errstr string The error message itself
$errfile string The file where the error occurs
$errline integer The line where the error occurs
return boolean Always return TRUE, because we want to disable default PHP error handling
    public function errorHandler($errno, $errstr, $errfile, $errline)
    {
        // query whether or not we've to handle the passed error
        if ($errno < error_reporting()) {
            return true;
        }
        // add the passed error information to the array with the errors
        $this->addError(new Error($errno, $errstr, $errfile, $errline));
        return true;
    }