diff options
Diffstat (limited to 'error.php')
-rw-r--r-- | error.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,9 @@ <?php function ch_error($level, $message, $file = null, $line = null, $context = null) { - ob_end_clean(); ?> + if ($level === E_USER_DEPRECATED || $level === E_DEPRECATED) return false; + + ob_end_clean(); + + ?> <!DOCTYPE html> <html lang="en"> @@ -68,10 +72,8 @@ if ($level === E_COMPILE_WARNING) echo("E_ALL"); if ($level === E_CORE_ERROR) echo("E_ALL"); if ($level === E_CORE_WARNING) echo("E_ALL"); - if ($level === E_DEPRECATED) echo("E_DEPRECATED"); if ($level === E_PARSE) echo("E_PARSE"); if ($level === E_RECOVERABLE_ERROR) echo("E_RECOVERABLE_ERROR"); - if ($level === E_USER_DEPRECATED) echo("E_USER_DEPRECATED"); ?>] <?= $message ?> |