diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-01-15 08:13:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-01-15 08:13:40 +0000 |
commit | b62029cfb8193b40676d2bcb928e4044b1fca7cd (patch) | |
tree | fef134fad548a079f5c2fd4ca9aae039f7db1194 | |
parent | 38226d51cd79f23fbc6c5dd7a6388ce464b0a0d3 (diff) | |
download | brdo-b62029cfb8193b40676d2bcb928e4044b1fca7cd.tar.gz brdo-b62029cfb8193b40676d2bcb928e4044b1fca7cd.tar.bz2 |
- Patch #115606 by Junyor, thesaint_02: added support for PHP 5.2's 'recoverable fatal errors'.
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index fbd88e993..f3c915425 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -578,7 +578,7 @@ function drupal_error_handler($errno, $message, $filename, $line, $context) { } if ($errno & (E_ALL)) { - $types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning'); + $types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning', 4096 => 'recoverable fatal error'); // For database errors, we want the line number/file name of the place that // the query was originally called, not _db_query(). @@ -3323,7 +3323,7 @@ function drupal_write_record($table, &$object, $update = array()) { return $return; } - return FALSE; + return FALSE; } /** |