still bail on assert failures even when debug is off

This commit is contained in:
Shish 2012-01-26 15:26:00 +00:00
parent 98f09695b6
commit 54031fcb90

View file

@ -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()) {