Please add the NEWS entry to PHP_4_3 branch too..and the test.
--Jani
On Mon, 25 Apr 2005, Dmitry Stogov wrote:
dmitry Mon Apr 25 05:58:32 2005 EDT
Modified files: (Branch: PHP_4_3)
/Zend zend_compile.c
Log:
Fixed bug #29944 (Function defined in switch, crashes).
http://cvs.php.net/diff.php/Zend/zend_compile.c?r1=1.240.2.9&r2=1.240.2.10&ty=u
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.240.2.9 Zend/zend_compile.c:1.240.2.10
--- Zend/zend_compile.c:1.240.2.9 Thu Dec 30 10:22:52 2004
+++ Zend/zend_compile.c Mon Apr 25 05:58:32 2005
@@ -1044,7 +1044,7 @@
zend_op *opline;
if (switch_entry->cond.op_type!=IS_VAR && switch_entry->cond.op_type!=IS_TMP_VAR) {
- return 1;
+ return (switch_entry->cond.op_type == IS_UNUSED);
}
opline = get_next_op(CG(active_op_array) TSRMLS_CC);
--
Donate @ http://pecl.php.net/wishlist.php/sniper