function _errorHandler($errNo, $errMsg, $errFile, $errLine, $errCont)
    {
        $errType = $this->_getErrorTypes();

        $errorMessage = $errType[$errNo] . "\t\"" . trim($errMsg) . "\"\t" . $errFile . ' ' . 'Line:' . $errLine;

        if (self::$_config['errors']['logAll']) {
            error_log('JBDump:' . $errorMessage);
        }

        if (!(error_reporting() & $errNo) || error_reporting() == 0 || (int)ini_get('display_errors') == 0) {

            if (self::$_config['errors']['logHidden']) {
                $errorMessage = date(self::DATE_FORMAT, time()) . ' ' . $errorMessage . PHP_EOL;

                $logPath = self::$_config['log']['path']
                    . '/' . self::$_config['log']['file'] . '_error_' . date('Y.m.d') . '.log';

                error_log($errorMessage, 3, $logPath);
            }

            return false;
        }


        $errFile = $this->_getRalativePath($errFile);
        $result  = array(
            'file'    => $errFile . ' : ' . $errLine,
            'type'    => $errType[$errNo] . ' (' . $errNo . ')',
            'message' => $errMsg,
        );

        if (self::$_config['errors']['context']) {
            $result['context'] = $errCont;
        }

        if (self::$_config['errors']['errorBacktrace']) {
            $trace = debug_backtrace();
            unset($trace[0]);
            $result['backtrace'] = $this->convertTrace($trace);
        }

        if ($this->_isLiteMode()) {
            $errorInfo = array(
                'message' => $result['type'] . ' / ' . $result['message'],
                'file'    => $result['file']
            );
            $this->_dumpRenderLite($errorInfo, '* ' . $errType[$errNo]);

        } else {
            $desc = '<b style="color:red;">*</b> ' . $errType[$errNo] . ' / ' . $this->_htmlChars($result['message']);
            $this->dump($result, $desc);
        }

        return true;
    }
function _errorHandler($errNo, $errMsg, $errFile, $errLine, $errCont)
    {
        $errType = $this->_getErrorTypes();

        $errorMessage = $errType[$errNo] . "\t\"" . trim($errMsg) . "\"\t" . $errFile . ' ' . 'Line:' . $errLine;

        if (self::$_config['errors']['logAll']) {
            error_log('JBDump:' . $errorMessage);
        }

        if (!(error_reporting() & $errNo) || error_reporting() == 0 || (int)ini_get('display_errors') == 0) {

            if (self::$_config['errors']['logHidden']) {
                $errorMessage = date(self::DATE_FORMAT, time()) . ' ' . $errorMessage . PHP_EOL;

                $logPath = self::$_config['log']['path']
                    . '/' . self::$_config['log']['file'] . '_error_' . date('Y.m.d') . '.log';

                error_log($errorMessage, 3, $logPath);
            }

            return false;
        }


        $errFile = $this->_getRalativePath($errFile);
        $result  = array(
            'file'    => $errFile . ' : ' . $errLine,
            'type'    => $errType[$errNo] . ' (' . $errNo . ')',
            'message' => $errMsg,
        );

        if (self::$_config['errors']['context']) {
            $result['context'] = $errCont;
        }

        if (self::$_config['errors']['errorBacktrace']) {
            $trace = debug_backtrace();
            unset($trace[0]);
            $result['backtrace'] = $this->convertTrace($trace);
        }

        if ($this->_isLiteMode()) {
            $errorInfo = array(
                'message' => $result['type'] . ' / ' . $result['message'],
                'file'    => $result['file']
            );
            $this->_dumpRenderLite($errorInfo, '* ' . $errType[$errNo]);

        } else {
            $desc = '<b style="color:red;">*</b> ' . $errType[$errNo] . ' / ' . $this->_htmlChars($result['message']);
            $this->dump($result, $desc);
        }

        return true;
    }
function _errorHandler ( $ errNo , $ errMsg , $ errFile , $ errLine , $ errCont ) { $ errType = $ this -> _getErrorTypes ( ) ; $ errorMessage = $ errType [ $ errNo ] . "\t\"" . trim ( $ errMsg ) . "\"\t" . $ errFile . ' ' . 'Line:' . $ errLine ; if ( self :: $ _config [ 'errors' ] [ 'logAll' ] ) { error_log ( 'JBDump:' . $ errorMessage ) ; } if ( ! ( error_reporting ( ) & $ errNo ) || error_reporting ( ) == 0 || ( int ) ini_get ( 'display_errors' ) == 0 ) { if ( self :: $ _config [ 'errors' ] [ 'logHidden' ] ) { $ errorMessage = date ( self :: DATE_FORMAT , time ( ) ) . ' ' . $ errorMessage . PHP_EOL ; $ logPath = self :: $ _config [ 'log' ] [ 'path' ] . '/' . self :: $ _config [ 'log' ] [ 'file' ] . '_error_' . date ( 'Y.m.d' ) . '.log' ; error_log ( $ errorMessage , 3 , $ logPath ) ; } return false ; } $ errFile = $ this -> _getRalativePath ( $ errFile ) ; $ result = array ( 'file' => $ errFile . ' : ' . $ errLine , 'type' => $ errType [ $ errNo ] . ' (' . $ errNo . ')' , 'message' => $ errMsg , ) ; if ( self :: $ _config [ 'errors' ] [ 'context' ] ) { $ result [ 'context' ] = $ errCont ; } if ( self :: $ _config [ 'errors' ] [ 'errorBacktrace' ] ) { $ trace = debug_backtrace ( ) ; unset ( $ trace [ 0 ] ) ; $ result [ 'backtrace' ] = $ this -> convertTrace ( $ trace ) ; } if ( $ this -> _isLiteMode ( ) ) { $ errorInfo = array ( 'message' => $ result [ 'type' ] . ' / ' . $ result [ 'message' ] , 'file' => $ result [ 'file' ] ) ; $ this -> _dumpRenderLite ( $ errorInfo , '* ' . $ errType [ $ errNo ] ) ; } else { $ desc = '<b style="color:red;">*</b> ' . $ errType [ $ errNo ] . ' / ' . $ this -> _htmlChars ( $ result [ 'message' ] ) ; $ this -> dump ( $ result , $ desc ) ; } return true ; }
Error handler for PHP errors
@param   integer $errNo
@param   string  $errMsg
@param   string  $errFile
@param   integer $errLine
@param   array   $errCont
@return  bool
Error handler for PHP errors