src/Dev/DebugView.php
public function renderError($httpRequest, $errno, $errstr, $errfile, $errline)
    {
        $errorType = isset(self::$error_types[$errno]) ? self::$error_types[$errno] : self::$unknown_error;
        $httpRequestEnt = htmlentities($httpRequest, ENT_COMPAT, 'UTF-8');
        if (ini_get('html_errors')) {
            $errstr = strip_tags($errstr);
        } else {
            $errstr = Convert::raw2xml($errstr);
        }
        $output = '<div class="header info ' . $errorType['class'] . '">';
        $output .= "<h1>[" . $errorType['title'] . '] ' . $errstr . "</h1>";
        $output .= "<h3>$httpRequestEnt</h3>";
        $output .= "<p>Line <strong>$errline</strong> in <strong>$errfile</strong></p>";
        $output .= '</div>';

        return $output;
    }
public function renderError($httpRequest, $errno, $errstr, $errfile, $errline)
    {
        $errorType = isset(self::$error_types[$errno]) ? self::$error_types[$errno] : self::$unknown_error;
        $httpRequestEnt = htmlentities($httpRequest, ENT_COMPAT, 'UTF-8');
        if (ini_get('html_errors')) {
            $errstr = strip_tags($errstr);
        } else {
            $errstr = Convert::raw2xml($errstr);
        }
        $output = '<div class="header info ' . $errorType['class'] . '">';
        $output .= "<h1>[" . $errorType['title'] . '] ' . $errstr . "</h1>";
        $output .= "<h3>$httpRequestEnt</h3>";
        $output .= "<p>Line <strong>$errline</strong> in <strong>$errfile</strong></p>";
        $output .= '</div>';

        return $output;
    }
public function renderError ( $ httpRequest , $ errno , $ errstr , $ errfile , $ errline ) { $ errorType = isset ( self :: $ error_types [ $ errno ] ) ? self :: $ error_types [ $ errno ] : self :: $ unknown_error ; $ httpRequestEnt = htmlentities ( $ httpRequest , ENT_COMPAT , 'UTF-8' ) ; if ( ini_get ( 'html_errors' ) ) { $ errstr = strip_tags ( $ errstr ) ; } else { $ errstr = Convert :: raw2xml ( $ errstr ) ; } $ output = '<div class="header info ' . $ errorType [ 'class' ] . '">' ; $ output .= "<h1>[" . $ errorType [ 'title' ] . '] ' . $ errstr . "</h1>" ; $ output .= "<h3>$httpRequestEnt</h3>" ; $ output .= "<p>Line <strong>$errline</strong> in <strong>$errfile</strong></p>" ; $ output .= '</div>' ; return $ output ; }
Render an error.

@param string $httpRequest the kind of request
@param int $errno Codenumber of the error
@param string $errstr The error message
@param string $errfile The name of the soruce code file where the error occurred
@param int $errline The line number on which the error occured
@return string
Render an error .