mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Emit EXT_STMT for each 'elseif' clause
This commit is contained in:
parent
8735ae9d13
commit
c06e1abbaa
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue