xref: /PHP-8.2/Zend/tests/exception_011.phpt (revision d5456baf)
1--TEST--
2Test exception doesn't cause RSHUTDOWN bypass, variation 0
3--INI--
4assert.bail=1
5assert.exception=1
6--FILE--
7<?php
8
9define ("XXXXX", 1);
10try {
11    assert(false);
12} catch (AssertionError $error) {
13    echo "Caught\n";
14}
15
16?>
17--EXPECTHEADERS--
18Content-type: text/html; charset=UTF-8
19--EXPECTF--
20Fatal error: Uncaught AssertionError: assert(false) in %sexception_011.php:%d
21Stack trace:
22#0 %sexception_011.php(%d): assert(false, 'assert(false)')
23#1 {main}
24  thrown in %sexception_011.php on line %d
25