Skip to content

Commit

Permalink
Merged pull request #8574
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed May 20, 2022
2 parents 8735ae9 + c06e1ab commit 33850fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5229,6 +5229,12 @@ void zend_compile_if(zend_ast *ast) /* {{{ */
if (cond_ast) {
znode cond_node;
uint32_t opnum_jmpz;

if (i > 0) {
CG(zend_lineno) = cond_ast->lineno;
zend_do_extended_stmt();
}

zend_compile_expr(&cond_node, cond_ast);
opnum_jmpz = zend_emit_cond_jump(ZEND_JMPZ, &cond_node, 0);

Expand Down

0 comments on commit 33850fb

Please sign in to comment.