xref: /PHP-7.1/Zend/tests/break_error_004.phpt (revision a16aa4c4)
1--TEST--
2'break' error (wrong level)
3--FILE--
4<?php
5function foo () {
6	while (1) {
7		break 2;
8	}
9}
10?>
11--EXPECTF--
12Fatal error: Cannot 'break' 2 levels in %sbreak_error_004.php on line 4
13