From: Andi Gutmans Date: Thu, 19 Oct 2000 09:36:53 +0000 (+0000) Subject: - Constant expressions which are used multiple times need to be copy_ctored X-Git-Tag: php-4.0.4RC3~623 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c13cfa040d58231f3779f3b2b123a401994f8e35;p=php - Constant expressions which are used multiple times need to be copy_ctored --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 605980f7c3..1534b4d0ea 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1861,7 +1861,10 @@ void do_list_end(znode *result, znode *expr CLS_DC) opline->opcode = ZEND_FETCH_DIM_R; break; case IS_TMP_VAR: + opline->opcode = ZEND_FETCH_DIM_TMP_VAR; + break; case IS_CONST: /* fetch_dim_tmp_var will handle this bogus fetch */ + zval_copy_ctor(&expr->u.constant); opline->opcode = ZEND_FETCH_DIM_TMP_VAR; break; }