diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-03-03 20:13:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-03-03 20:13:20 +0000 |
commit | f7b8f5357706e1e60a0af2c9fece953e227f3ed2 (patch) | |
tree | 5eb7073812f753070c3b418b643cb4fb4bee6f7e | |
parent | 36aaecd27e01169c12e4bd85fb63c951eb7c3fb0 (diff) | |
download | brdo-f7b8f5357706e1e60a0af2c9fece953e227f3ed2.tar.gz brdo-f7b8f5357706e1e60a0af2c9fece953e227f3ed2.tar.bz2 |
- Ignore PHP5's strict warnings for now. The real solution is to rewrite both xmlrpc.inc and xtemplate.inc.
-rw-r--r-- | includes/common.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc index f9fec8daf..a15bee61c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -377,7 +377,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = * 2 = Log errors to database and to screen. */ function error_handler($errno, $message, $filename, $line, $variables) { - if ($errno & E_ALL ^ E_NOTICE) { + if ($errno & (E_ALL ^ E_NOTICE)) { $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'); $entry = $types[$errno] .': '. $message .' in '. $filename .' on line '. $line .'.'; @@ -1864,6 +1864,9 @@ if (version_compare(phpversion(), '5.0') < 0) { '); } +// Set the Drupal custom error handler. +set_error_handler('error_handler'); + include_once 'includes/theme.inc'; include_once 'includes/pager.inc'; include_once 'includes/menu.inc'; @@ -1872,9 +1875,6 @@ include_once 'includes/file.inc'; include_once 'includes/xmlrpc.inc'; include_once 'includes/image.inc'; -// Set the Drupal custom error handler. -set_error_handler('error_handler'); - // Emit the correct charset HTTP header. drupal_set_header('Content-Type: text/html; charset=utf-8'); |