File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 6
6
. Implement GH-10024 (support linting multiple files at once using php -l).
7
7
(nielsdos)
8
8
9
+ - Core:
10
+ . Fixed line number of JMP instruction over else block. (ilutov)
11
+
9
12
06 Jul 2023, PHP 8.3.0alpha3
10
13
11
14
- Core:
Original file line number Diff line number Diff line change @@ -5567,6 +5567,9 @@ static void zend_compile_if(zend_ast *ast) /* {{{ */
5567
5567
zend_compile_stmt (stmt_ast );
5568
5568
5569
5569
if (i != list -> children - 1 ) {
5570
+ /* Set the lineno of JMP to the position of the if keyword, as we don't want to
5571
+ * report the last line in the if branch as covered if it hasn't actually executed. */
5572
+ CG (zend_lineno ) = elem_ast -> lineno ;
5570
5573
jmp_opnums [i ] = zend_emit_jump (0 );
5571
5574
}
5572
5575
zend_update_jump_target_to_next (opnum_jmpz );
You can’t perform that action at this time.
0 commit comments