X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-ares;a=blobdiff_plain;f=ares.c;h=7191268dded77ee009b39f7b881310ce97b38380;hp=fce9a82150b9dc58f26cc0f71464a9a9336f608d;hb=0a85371c47a2c945b2da365220544982d5dfc5bd;hpb=6989babd3cfc52618a37de891da78640f5aff5b5 diff --git a/ares.c b/ares.c index fce9a82..7191268 100644 --- a/ares.c +++ b/ares.c @@ -737,17 +737,6 @@ local int php_ares_parse(const unsigned char *abuf, int alen, zval *result TSRML if (entry) { add_next_index_zval(result, entry); - /* - if (SUCCESS == zend_hash_find(Z_ARRVAL_P(result), php_ares_T_names[type], strlen(php_ares_T_names[type])+1, (void *) &entry_ptr)) { - add_next_index_zval(*entry_ptr, entry); - } else { - zval *array; - - MAKE_STD_ZVAL(array); - array_init(array); - add_next_index_zval(array, entry); - add_assoc_zval(result, php_ares_T_names[type], array); - }*/ } } @@ -1660,7 +1649,7 @@ static ZEND_RSRC_DTOR_FUNC(php_ares_query_le_dtor) static PHP_MINIT_FUNCTION(ares) { #ifdef HAVE_ARES_LIBRARY_INIT - if (ARES_SUCCESS != ares_library_init()) { + if (ARES_SUCCESS != ares_library_init(ARES_LIB_INIT_ALL)) { return FAILURE; } #endif