com php-src: Fix list() = string refcounting: Zend/ze nd_compile.c

From: Date: Fri, 15 Aug 2014 20:36:22 +0000
Subject: com php-src: Fix list() = string refcounting: Zend/ze nd_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-80861@lists.php.net to get a copy of this message
Commit: 9cfbf333b03f1a50394219f9d42871a6564b8ac6 Author: Nikita Popov <nikic@php.net> Fri, 15 Aug 2014 22:36:22 +0200 Parents: b511bf828cfbff5a6a06196800812671f2b779b8 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9cfbf333b03f1a50394219f9d42871a6564b8ac6 Log: Fix list() = string refcounting Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 948fc55..5a3359e 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3786,6 +3786,10 @@ static void zend_compile_list_assign(znode *result, zend_ast *ast, znode *expr_n dim_node.op_type = IS_CONST; ZVAL_LONG(&dim_node.u.constant, i); + if (expr_node->op_type == IS_CONST) { + Z_TRY_ADDREF(expr_node->u.constant); + } + opline = zend_emit_op(&fetch_result, get_list_fetch_opcode(expr_node->op_type), expr_node, &dim_node TSRMLS_CC); opline->extended_value |= ZEND_FETCH_ADD_LOCK;

« previous php.cvs (#80861) next »