Re: 5.3 cvs zend_do_begin_dynamic_function_call ZEND_OP_DATA op2 not initialized
| From: | Stanislav Malyshev | Date: | Mon, 15 Dec 2008 11:32:09 +0000 |
| Subject: | Re: 5.3 cvs zend_do_begin_dynamic_function_call ZEND_OP_DATA op2 not initialized | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42265@lists.php.net to get a copy of this message | ||
Hi!
Thanks, fixed.
Xuefer wrote:
opline2->op2.op_type == 0, which should be opline2->op2.op_type ==
IS_UNUSED. patch followed:
$ cvs diff zend_compile.c
Index: zend_compile.c
===================================================================
RCS file: /repository/ZendEngine2/zend_compile.c,v
retrieving revision 1.647.2.27.2.41.2.95
diff -u -r1.647.2.27.2.41.2.95 zend_compile.c
--- zend_compile.c 26 Nov 2008 00:57:05 -0000 1.647.2.27.2.41.2.95
+++ zend_compile.c 12 Dec 2008 04:54:42 -0000
@@ -1664,6 +1664,7 @@
Z_LVAL(opline2->op1.u.constant) = prefix_len;
/* this is the hash of the non-prefixed part, lowercased */
opline2->extended_value = zend_hash_func(slash+1, name_len+1);
+ SET_UNUSED(opline2->op2);
} else {
opline->opcode = ZEND_INIT_FCALL_BY_NAME;
opline->op2 = *function_name;
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com