cvs: ZendEngine2 / zend_compile.c
| From: | Andi Gutmans | Date: | Tue, 02 Mar 2004 11:03:49 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2437@lists.php.net to get a copy of this message | ||
andi Tue Mar 2 06:03:49 2004 EDT
Modified files:
/ZendEngine2 zend_compile.c
Log:
- Fix leaks (although there might be still a problem here).
http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.550&r2=1.551&ty=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.550 ZendEngine2/zend_compile.c:1.551
--- ZendEngine2/zend_compile.c:1.550 Tue Mar 2 03:28:12 2004
+++ ZendEngine2/zend_compile.c Tue Mar 2 06:03:48 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.550 2004/03/02 08:28:12 andi Exp $ */
+/* $Id: zend_compile.c,v 1.551 2004/03/02 11:03:48 andi Exp $ */
#include "zend_language_parser.h"
#include "zend.h"
@@ -1464,8 +1464,8 @@
{
zend_op *opline;
- if (switch_entry->cond.op_type!=IS_VAR && switch_entry->cond.op_type!=IS_TMP_VAR) {
- return 1;
+ if (switch_entry->cond.op_type != IS_VAR && switch_entry->cond.op_type !=
IS_TMP_VAR) {
+ return 0;
}
opline = get_next_op(CG(active_op_array) TSRMLS_CC);
@@ -1482,7 +1482,7 @@
zend_op *opline;
if (foreach_copy->op_type != IS_VAR && foreach_copy->op_type != IS_TMP_VAR) {
- return 1;
+ return 0;
}
opline = get_next_op(CG(active_op_array) TSRMLS_CC);