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