Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c

From: Date: Wed, 12 Jan 2005 00:24:18 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3281@lists.php.net to get a copy of this message
Are you sure this is the right fix? After all, last_op->result.u.var should already have a temporary variable assigned for when the opcode was generated. When exactly did you find this is not the case? Andi At 05:17 PM 1/11/2005 +0000, Moriyoshi Koizumi wrote:
moriyoshi               Tue Jan 11 12:17:49 2005 EDT
Modified files:
    /ZendEngine2        zend_compile.c
Log: - Fix bug #31478 (segfault with empty()) http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.602&r2=1.603&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.602 ZendEngine2/zend_compile.c:1.603
--- ZendEngine2/zend_compile.c:1.602    Thu Dec 30 10:18:23 2004
+++ ZendEngine2/zend_compile.c Tue Jan 11 12:17:48 2005 @@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: zend_compile.c,v 1.602 2004/12/30 15:18:23 sniper Exp $ */ +/* $Id: zend_compile.c,v 1.603 2005/01/11 17:17:48 moriyoshi Exp $ */ #include <zend_language_parser.h> #include "zend.h" @@ -3321,6 +3321,7 @@
                }
        }
        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;
-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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