cvs: ZendEngine2 / zend_compile.c
| From: | Dmitry Stogov | Date: | Tue, 04 Dec 2007 12:36:20 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6218@lists.php.net to get a copy of this message | ||
dmitry Tue Dec 4 12:36:20 2007 UTC
Modified files:
/ZendEngine2 zend_compile.c
Log:
Fixed uninitialized value
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.788&r2=1.789&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.788 ZendEngine2/zend_compile.c:1.789
--- ZendEngine2/zend_compile.c:1.788 Mon Dec 3 14:15:55 2007
+++ ZendEngine2/zend_compile.c Tue Dec 4 12:36:20 2007
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.788 2007/12/03 14:15:55 dmitry Exp $ */
+/* $Id: zend_compile.c,v 1.789 2007/12/04 12:36:20 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -1432,6 +1432,8 @@
cur_arg_info->array_type_hint = 0;
cur_arg_info->allow_null = 1;
cur_arg_info->pass_by_reference = pass_by_reference;
+ cur_arg_info->class_name = NULL_ZSTR;
+ cur_arg_info->class_name_len = 0;
if (class_type->op_type != IS_UNUSED) {
cur_arg_info->allow_null = 0;
@@ -1466,9 +1468,6 @@
}
}
}
- } else {
- cur_arg_info->class_name = NULL_ZSTR;
- cur_arg_info->class_name_len = 0;
}
opline->result.u.EA.type |= EXT_TYPE_UNUSED;
}