public function errorHandler($errno, $errstr, $errfile = '', $errline = 0, $errcontext = array())
    {
        // get the current error reporting level
        $level = error_reporting();

        // if error was supressed or $errno not set in current error level
        if ($level == 0 || ($level & $errno) == 0) {
            return true;
        }

        return false;
    }
public function errorHandler($errno, $errstr, $errfile = '', $errline = 0, $errcontext = array())
    {
        // get the current error reporting level
        $level = error_reporting();

        // if error was supressed or $errno not set in current error level
        if ($level == 0 || ($level & $errno) == 0) {
            return true;
        }

        return false;
    }
public function errorHandler ( $ errno , $ errstr , $ errfile = '' , $ errline = 0 , $ errcontext = array ( ) ) { // get the current error reporting level $ level = error_reporting ( ) ; // if error was supressed or $errno not set in current error level if ( $ level == 0 || ( $ level & $ errno ) == 0 ) { return true ; } return false ; }
The error handling function used when outputting captcha image or audio.

This error handler helps determine if any errors raised would
prevent captcha image or audio from displaying.  If they have
no effect on the output buffer or headers, true is returned so
the script can continue processing.

See https://github.com/dapphp/securimage/issues/15

@param int $errno  PHP error number
@param string $errstr  String description of the error
@param string $errfile  File error occurred in
@param int $errline  Line the error occurred on in file
@param array $errcontext  Additional context information
@return boolean true if the error was handled, false if PHP should handle the error
The error handling function used when outputting captcha image or audio .