mirror of
https://github.com/php/php-src.git
synced 2026-04-02 05:32:28 +02:00
Fixed FE_RESET/FE_FETCH bug.
Now FE_RESET instruction takes jump-address from itself, not from the following FE_FETCH instruction.
This commit is contained in:
@@ -3478,6 +3478,7 @@ void zend_do_foreach_end(znode *foreach_token TSRMLS_DC)
|
||||
SET_UNUSED(opline->op2);
|
||||
|
||||
CG(active_op_array)->opcodes[foreach_token->u.opline_num].op2.u.opline_num = get_next_op_number(CG(active_op_array));
|
||||
CG(active_op_array)->opcodes[foreach_token->u.opline_num-1].op2.u.opline_num = get_next_op_number(CG(active_op_array)); /* FE_RESET */
|
||||
|
||||
do_end_loop(foreach_token->u.opline_num TSRMLS_CC);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user