summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/dns_win32.c8
1 files changed, 2 insertions, 6 deletions
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;
}