Skip to content

Commit 852e6b9

Browse files
committed
Merge branch 'PHP-8.1'
2 parents 14319c2 + 9a19505 commit 852e6b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Zend/zend_compile.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,6 +5332,12 @@ static void zend_compile_if(zend_ast *ast) /* {{{ */
53325332
if (cond_ast) {
53335333
znode cond_node;
53345334
uint32_t opnum_jmpz;
5335+
5336+
if (i > 0) {
5337+
CG(zend_lineno) = cond_ast->lineno;
5338+
zend_do_extended_stmt();
5339+
}
5340+
53355341
zend_compile_expr(&cond_node, cond_ast);
53365342
opnum_jmpz = zend_emit_cond_jump(ZEND_JMPZ, &cond_node, 0);
53375343

0 commit comments

Comments
 (0)