X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=include%2Fplatal.inc.php;h=6bfd24f83d8244ae345989600f23e9bc93c974c7;hb=d0327f6de73e81c4bcc656471ca4161e4f1e1e1b;hp=ad6bbe92c97474f25cf9a7d8e9ad4c6b9a83cd51;hpb=be6ab042d1dc34d9e42557281b48dd8da400231b;p=platal.git diff --git a/include/platal.inc.php b/include/platal.inc.php index ad6bbe9..6bfd24f 100644 --- a/include/platal.inc.php +++ b/include/platal.inc.php @@ -1,6 +1,6 @@ "User Error", E_USER_WARNING => "User Warning", E_USER_NOTICE => "User Notice", - E_STRICT => "Runtime Notice" + E_STRICT => "Runtime Notice", + E_RECOVERABLE_ERROR => "Recoverable Error" ); } @@ -85,10 +90,11 @@ function pl_error_handler($errno, $errstr, $errfile, $errline) } } + $type = isset($errortype[$errno]) ? $errortype[$errno] : $errno; $errstr = utf8_encode(htmlentities($errstr)); $GLOBALS['pl_errors'][] = "
". - "{$errortype[$errno]} $errstr
". + "{$type} $errstr
". "$errfile : $errline". "
"; }