Код: Выделить всё
// Make assertions throw exception
assert_options(
ASSERT_CALLBACK,
function ($file, $line, $code, $desc = null) {
$dest = $file . ':' . $line . ' - ' . $code;
throw new \Exception($dest . PHP_EOL . $desc);
}
);
assert_options(ASSERT_ACTIVE, 1);
assert_options(ASSERT_WARNING, 1);
Код: Выделить всё
Note: The use of assert_options() is discouraged in favor of setting and getting the php.ini directives zend.assertions and assert.exception with ini_set() and ini_get(), respectively.
< /code>
< /blockquote>
Но как я могу это сделать? Какие настройки должны быть установлены через ini_set? Например, здесь ASSERT_OPTIONS Подробнее здесь: https://stackoverflow.com/questions/797 ... rt-options
Мобильная версия