xref: /PHP-7.1/Zend/tests/exception_012.phpt (revision 7af945e2)
1--TEST--
2Test exception doesn't cause RSHUTDOWN bypass, variation 1
3--INI--
4assert.bail=1
5assert.exception=1
6--FILE--
7<?php
8
9$func = create_function('', 'define("Mommy", 1); assert(false);');
10$func();
11
12?>
13--EXPECTHEADERS--
14Content-type: text/html; charset=UTF-8
15--EXPECTF--
16Fatal error: Uncaught AssertionError: assert(false) in %sexception_012.php(%d) : runtime-created function:%d
17Stack trace:
18#0 %sexception_012.php(%d) : runtime-created function(%d): assert(false, 'assert(false)')
19#1 %sexception_012.php(%d): __lambda_func()
20#2 {main}
21  thrown in %sexception_012.php(%d) : runtime-created function on line %d
22