cvs: Zend(PHP_4_3) / zend_compile.c

From: Date: Tue, 22 Jul 2003 17:21:14 +0000
Subject: cvs: Zend(PHP_4_3) / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1514@lists.php.net to get a copy of this message
zeev Tue Jul 22 13:21:14 2003 EDT Modified files: (Branch: PHP_4_3) /Zend zend_compile.c Log: Fix bug #24710 Index: Zend/zend_compile.c diff -u Zend/zend_compile.c:1.240.2.4 Zend/zend_compile.c:1.240.2.5 --- Zend/zend_compile.c:1.240.2.4 Thu May 29 05:00:25 2003 +++ Zend/zend_compile.c Tue Jul 22 13:21:14 2003 @@ -1690,6 +1690,10 @@ zend_op opline; zend_llist *fetch_list_ptr; + if (property->op_type == IS_CONST + && property->u.constant.type != IS_STRING) { + zend_error(E_COMPILE_ERROR, "Property name must be a string"); + } init_op(&opline TSRMLS_CC); opline.opcode = ZEND_FETCH_OBJ_W; /* the backpatching routine assumes W */ opline.result.op_type = IS_VAR;

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