logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: ZendEngine2(PHP_5_3) / zend_compile.c: msg#00003

Subject: cvs: ZendEngine2(PHP_5_3) / zend_compile.c
dmitry          Tue Dec  4 12:38:42 2007 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2        zend_compile.c 
  Log:
  Fixed uninitialized value
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.27.2.41.2.27&r2=1.647.2.27.2.41.2.28&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.27 
ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.28
--- ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.27     Mon Dec  3 14:15:42 2007
+++ ZendEngine2/zend_compile.c  Tue Dec  4 12:38:42 2007
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.27 2007/12/03 14:15:42 dmitry Exp $ 
*/
+/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.28 2007/12/04 12:38:42 dmitry Exp $ 
*/
 
 #include <zend_language_parser.h>
 #include "zend.h"
@@ -1338,6 +1338,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;
+       cur_arg_info->class_name_len = 0;
 
        if (class_type->op_type != IS_UNUSED) {
                cur_arg_info->allow_null = 0;
@@ -1366,9 +1368,6 @@
                                }
                        }
                }
-       } else {
-               cur_arg_info->class_name = NULL;
-               cur_arg_info->class_name_len = 0;
        }
        opline->result.u.EA.type |= EXT_TYPE_UNUSED;
 }

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>