cvs: Zend(PHP_4_3) / zend_compile.c
| From: | Dmitry Stogov | Date: | Mon, 25 Apr 2005 09:58:32 +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-3585@lists.php.net to get a copy of this message | ||
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);