From: Xinchen Hui Date: Mon, 29 Jun 2015 07:13:09 +0000 (+0800) Subject: Fixed segfault in wordpress (introduced in rev 4a4529adb03a5e0d8c46809074a9bae37686e201) X-Git-Tag: php-7.1.0alpha3~25^2~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ba28d76d2e5bfe7aaa9a052898e5f759b84b4ba;p=php Fixed segfault in wordpress (introduced in rev 4a4529adb03a5e0d8c46809074a9bae37686e201) --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 7194aacdb5..8452568382 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -6623,10 +6623,9 @@ static void zend_compile_encaps_list(znode *result, zend_ast *ast) /* {{{ */ } else { uint32_t var; zend_brk_cont_element *info = get_next_brk_cont_element(CG(active_op_array)); - info->brk = opline - CG(active_op_array)->opcodes; info->start = rope_init_lineno; info->parent = CG(context).current_brk_cont; - info->cont = -1; + info->cont = info->brk = opline - CG(active_op_array)->opcodes; init_opline->extended_value = j; opline->opcode = ZEND_ROPE_END;