cvs: ZendEngine2 / zend_compile.c
| From: | Zeev Suraski | Date: | Wed, 11 Feb 2004 10:51:05 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2349@lists.php.net to get a copy of this message | ||
zeev Wed Feb 11 05:51:05 2004 EDT
Modified files:
/ZendEngine2 zend_compile.c
Log:
Fix bug #26802 (the right aspects of it found by Marcus, anyway :)
http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.539&r2=1.540&ty=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.539 ZendEngine2/zend_compile.c:1.540
--- ZendEngine2/zend_compile.c:1.539 Tue Feb 10 06:44:17 2004
+++ ZendEngine2/zend_compile.c Wed Feb 11 05:51:05 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.539 2004/02/10 11:44:17 andi Exp $ */
+/* $Id: zend_compile.c,v 1.540 2004/02/11 10:51:05 zeev Exp $ */
#include "zend_language_parser.h"
#include "zend.h"
@@ -1326,11 +1326,15 @@
} else {
zend_lowercase_znode_if_const(&last_op->op2);
}
- } else { /* indirect method call */
+ } else if (last_op->opcode == ZEND_FETCH_R) { /* indirect method call */
zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);
+
+ last_op->op2.u.EA.type = ZEND_FETCH_LOCAL;
opline->opcode = ZEND_INIT_STATIC_METHOD_CALL;
opline->op1 = last_op->op2;
opline->op2 = last_op->result;
+ } else {
+ zend_error(E_COMPILE_ERROR, "Internal compiler error - please report!");
}