1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/Zend/tests/exit/ast_print_assert_die_function.phpt

17 lines
253 B
PHP

--TEST--
Printing AST of die function via assert
--INI--
zend.assertions=1
--FILE--
<?php
try {
assert(0 && die());
} catch (Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
AssertionError: assert(0 && \exit())