cvs: ZendEngine2 / zend_compile.c

From: Date: Tue, 20 Jul 2004 08:58:18 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2782@lists.php.net to get a copy of this message
stas Tue Jul 20 04:58:18 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: add todo http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.567&r2=1.568&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.567 ZendEngine2/zend_compile.c:1.568 --- ZendEngine2/zend_compile.c:1.567 Mon May 31 17:38:01 2004 +++ ZendEngine2/zend_compile.c Tue Jul 20 04:58:18 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.567 2004/05/31 21:38:01 helly Exp $ */ +/* $Id: zend_compile.c,v 1.568 2004/07/20 08:58:18 stas Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -708,7 +708,7 @@ void zend_check_writable_variable(znode *variable) { zend_uint type = variable->u.EA.type; - + if (type & ZEND_PARSED_METHOD_CALL) { zend_error(E_COMPILE_ERROR, "Can't use method return value in write context"); } @@ -744,6 +744,8 @@ le = fetch_list_ptr->head; + /* TODO: $foo->x->y->z = 1 should fetch "x" and "y" for R or RW, not just W */ + while (le) { opline_ptr = (zend_op *)le->data; opline = get_next_op(CG(active_op_array) TSRMLS_CC);

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