mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
15 lines
315 B
PHP
15 lines
315 B
PHP
--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()
|