From 54031fcb902ffad611a61e8448e3b11b8a5207d5 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 26 Jan 2012 15:26:00 +0000 Subject: [PATCH] still bail on assert failures even when debug is off --- core/util.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index 660bb001..03bc66b1 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -911,10 +911,11 @@ function _stripslashes_r($arr) { function _sanitise_environment() { if(DEBUG) { error_reporting(E_ALL); - assert_options(ASSERT_ACTIVE, 1); - assert_options(ASSERT_BAIL, 1); } + assert_options(ASSERT_ACTIVE, 1); + assert_options(ASSERT_BAIL, 1); + ob_start(); if(get_magic_quotes_gpc()) {