cvs: ZendEngine2 / zend_compile.c
| From: | Dmitry Stogov | Date: | Thu, 27 Dec 2007 13:52:29 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6246@lists.php.net to get a copy of this message | ||
dmitry Thu Dec 27 13:52:29 2007 UTC
Modified files:
/ZendEngine2 zend_compile.c
Log:
Use proper result type
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.792&r2=1.793&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.792 ZendEngine2/zend_compile.c:1.793
--- ZendEngine2/zend_compile.c:1.792 Thu Dec 13 10:02:26 2007
+++ ZendEngine2/zend_compile.c Thu Dec 27 13:52:29 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.792 2007/12/13 10:02:26 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.793 2007/12/27 13:52:29 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -1556,6 +1556,7 @@
if (last_op->opcode == ZEND_FETCH_OBJ_R) {
last_op->opcode = ZEND_INIT_METHOD_CALL;
+ SET_UNUSED(last_op->result);
Z_LVAL(left_bracket->u.constant) = ZEND_INIT_FCALL_BY_NAME;
} else {
zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);
@@ -3392,7 +3393,7 @@
CG(active_class_entry) = new_class_entry;
opline->result.u.var = get_temporary_variable(CG(active_op_array));
- opline->result.op_type = IS_CONST;
+ opline->result.op_type = IS_VAR;
CG(implementing_class) = opline->result;
if (CG(doc_comment).v) {