From: Dmitry Stogov Date: Tue, 4 Dec 2007 12:36:20 +0000 (+0000) Subject: Fixed uninitialized value X-Git-Tag: RELEASE_2_0_0a1~1238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cac634fc4a50a6c97fad4e67c8e27f2ec44f402;p=php Fixed uninitialized value --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index f9c5305f50..aacfb97b92 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1432,6 +1432,8 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia 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 @@ void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initia } } } - } else { - cur_arg_info->class_name = NULL_ZSTR; - cur_arg_info->class_name_len = 0; } opline->result.u.EA.type |= EXT_TYPE_UNUSED; }