xref: /php-src/Zend/tests/gh13931.phpt (revision c3acfb1b)
1--TEST--
2GH-13931 (Applying zero offset to null pointer in Zend/zend_opcode.c)
3--FILE--
4<?php
5
6register_shutdown_function(function() {
7	var_dump(eval("return 1+3;"));
8});
9
10eval(<<<EVAL
11function foo () {
12    try {
13        break;
14    } finally {
15    }
16}
17foo();
18EVAL);
19
20?>
21--EXPECTF--
22Fatal error: 'break' not in the 'loop' or 'switch' context in %s on line %d
23int(4)
24