still bail on assert failures even when debug is off
This commit is contained in:
parent
98f09695b6
commit
54031fcb90
1 changed files with 3 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Reference in a new issue