Skip to content

Commit 9a19505

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
2 parents dd89aca + 33850fb commit 9a19505

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
@@ -5389,6 +5389,12 @@ static void zend_compile_if(zend_ast *ast) /* {{{ */
53895389
if (cond_ast) {
53905390
znode cond_node;
53915391
uint32_t opnum_jmpz;
5392+
5393+
if (i > 0) {
5394+
CG(zend_lineno) = cond_ast->lineno;
5395+
zend_do_extended_stmt();
5396+
}
5397+
53925398
zend_compile_expr(&cond_node, cond_ast);
53935399
opnum_jmpz = zend_emit_cond_jump(ZEND_JMPZ, &cond_node, 0);
53945400

0 commit comments

Comments
 (0)