From 5ba28d76d2e5bfe7aaa9a052898e5f759b84b4ba Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 29 Jun 2015 15:13:09 +0800 Subject: [PATCH] Fixed segfault in wordpress (introduced in rev 4a4529adb03a5e0d8c46809074a9bae37686e201) --- Zend/zend_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.40.0