cvs: ZendEngine2 / zend_compile.c

From: Date: Tue, 18 Jan 2005 12:01:34 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3311@lists.php.net to get a copy of this message
dmitry Tue Jan 18 07:01:34 2005 EDT Modified files: /ZendEngine2 zend_compile.c Log: Fixed patch for bug #31478 (SegFault/Memory Leak with empty()) http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.603&r2=1.604&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.603 ZendEngine2/zend_compile.c:1.604 --- ZendEngine2/zend_compile.c:1.603 Tue Jan 11 12:17:48 2005 +++ ZendEngine2/zend_compile.c Tue Jan 18 07:01:31 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.603 2005/01/11 17:17:48 moriyoshi Exp $ */ +/* $Id: zend_compile.c,v 1.604 2005/01/18 12:01:31 dmitry Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3305,6 +3305,7 @@ last_op->op1.u.constant.value.str.val = estrdup(CG(active_op_array)->vars[variable->u.var].name); SET_UNUSED(last_op->op2); last_op->op2.u.EA.type = ZEND_FETCH_LOCAL; + last_op->result.u.var = get_temporary_variable(CG(active_op_array)); } else { last_op = &CG(active_op_array)->opcodes[get_next_op_number(CG(active_op_array))-1]; @@ -3321,7 +3322,6 @@ } } last_op->result.op_type = IS_TMP_VAR; - last_op->result.u.var = get_temporary_variable(CG(active_op_array)); last_op->extended_value = type; *result = last_op->result;

« previous php.zend-engine.cvs (#3311) next »