ru_php/Zend/tests/assert/disable_assert_function.phpt

16 lines
315 B
Plaintext
Raw Permalink Normal View History

--TEST--
Use disable_functions INI setting to disable assert()
--INI--
zend.assertions=1
disable_functions=assert
--FILE--
<?php
try {
assert(false && "Is this evaluated?");
} catch (Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Error: Call to undefined function assert()