From: Pierre Joye Date: Tue, 13 May 2014 05:06:27 +0000 (+0200) Subject: port dns_win32 X-Git-Tag: POST_PHPNG_MERGE~379 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11caa1d7b49a1fb13afef0967dee926b7db40837;p=php port dns_win32 --- diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 3e691cceca..5d00b07af0 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -154,9 +154,6 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw, return; } -/* ALLOC_INIT_ZVAL(*subarray); - array_init(*subarray); -*/ ZVAL_NEW_ARR(*subarray); add_assoc_string(*subarray, "host", pRec->pName); add_assoc_string(*subarray, "class", "IN"); @@ -215,9 +212,8 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw, add_assoc_string(*subarray, "type", "TXT"); - ALLOC_INIT_ZVAL(entries); - array_init(entries); - + ZVAL_NEW_ARR(entries); + for (i = 0; i < count; i++) { txt_len += strlen(data_txt->pStringArray[i]) + 1; }