Toolbox::userErrorHandlerDebug PHP Méthode

userErrorHandlerDebug() static public méthode

Specific error handler in Debug mode
static public userErrorHandlerDebug ( $errno, $errmsg, $filename, $linenum, $vars )
$errno integer level of the error raised.
$errmsg string error message.
$filename string filename that the error was raised in.
$linenum integer line number the error was raised at.
$vars array that points to the active symbol table at the point the error occurred.
    static function userErrorHandlerDebug($errno, $errmsg, $filename, $linenum, $vars)
    {
        // For file record
        $type = self::userErrorHandlerNormal($errno, $errmsg, $filename, $linenum, $vars);
        // Display
        if (!isCommandLine()) {
            echo '<div style="position:float-left; background-color:red; z-index:10000">' . '<span class="b">PHP ' . $type . ': </span>';
            echo $errmsg . ' in ' . $filename . ' at line ' . $linenum . '</div>';
        } else {
            echo 'PHP ' . $type . ': ' . $errmsg . ' in ' . $filename . ' at line ' . $linenum . "\n";
        }
    }