From: Andi Gutmans Date: Sat, 29 Jun 2002 11:24:11 +0000 (+0000) Subject: - Revert previous fix. X-Git-Tag: php-4.3.0dev_zend2_alpha2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20d02565df1370ff90bf4dec5c84a07894c4d9f3;p=php - Revert previous fix. --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index c39235a288..ed573dffb1 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -919,9 +919,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n op_array.scope = CG(active_class_entry); if (is_method) { - if (zend_hash_add(&CG(active_class_entry)->function_table, name, name_len+1, &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)) == FAILURE) { - zend_error(E_COMPILE_ERROR, "Multiply defined method '%s'", name); - } + zend_hash_update(&CG(active_class_entry)->function_table, name, name_len+1, &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)); if ((CG(active_class_entry)->name_length == (uint) name_len) && (!memcmp(CG(active_class_entry)->name, name, name_len))) { CG(active_class_entry)->constructor = (zend_function *) CG(active_op_array); } else if ((function_name->u.constant.value.str.len == sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1) && (!memcmp(function_name->u.constant.value.str.val, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)))) {