summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index fed5fe4af..c8ac6e7a0 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -371,6 +371,10 @@ function drupal_initialize_variables() {
if (!isset($_SERVER['SERVER_PROTOCOL']) || ($_SERVER['SERVER_PROTOCOL'] != 'HTTP/1.0' && $_SERVER['SERVER_PROTOCOL'] != 'HTTP/1.1')) {
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.0';
}
+ // Enforce E_ALL, but allow users to set levels not part of E_ALL.
+ error_reporting(E_ALL | error_reporting());
+ // Prevent PHP from generating HTML errors messages.
+ ini_set('html_errors', 0);
}
/**