summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_012.phpt
blob: bf00529a6ca47128e21d527dd73eff66aaf9bb60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Test exception doesn't cause RSHUTDOWN bypass, variation 1
--INI--
assert.bail=1
assert.exception=1
--FILE--
<?php 

$func = create_function('', 'define("Mommy", 1); assert(false);');
$func();

?>
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
--EXPECTF--
Fatal error: Uncaught AssertionError: assert(false) in %sexception_012.php(%d) : runtime-created function:%d
Stack trace:
#0 %sexception_012.php(%d) : runtime-created function(%d): assert(false, 'assert(false)')
#1 %sexception_012.php(%d): __lambda_func()
#2 {main}
  thrown in %sexception_012.php(%d) : runtime-created function on line %d