zend.assertions can't be set at runtime

This commit is contained in:
Shish 2019-04-26 10:13:17 +01:00
parent 629f155187
commit 52dfa12df7

View file

@ -389,7 +389,7 @@ function _sanitise_environment() {
date_default_timezone_set(TIMEZONE); date_default_timezone_set(TIMEZONE);
} }
ini_set('zend.assertions', 1); // generate assertions # ini_set('zend.assertions', 1); // generate assertions
ini_set('assert.exception', 1); // throw exceptions when failed ini_set('assert.exception', 1); // throw exceptions when failed
if(DEBUG) { if(DEBUG) {
error_reporting(E_ALL); error_reporting(E_ALL);