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);
-
} else {SET_UNUSED(opline2->op2);
opline->opcode = ZEND_INIT_FCALL_BY_NAME;
opline->op2 = *function_name;
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.cRCS 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);
} else {SET_UNUSED(opline2->op2);
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