dis-bench / src /php /php-src /Zend /tests /assert /disable_assert_function.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
315 Bytes
--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()