com php-src: port dns_win32: ext/standard/dns_win 32.c
| From: | Pierre Joye | Date: | Tue, 13 May 2014 05:06:27 +0000 |
| Subject: | com php-src: port dns_win32: ext/standard/dns_win 32.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78301@lists.php.net to get a copy of this message | ||
Commit: 11caa1d7b49a1fb13afef0967dee926b7db40837
Author: Pierre Joye <pierre.php@gmail.com> Tue, 13 May 2014 07:06:27 +0200
Parents: bc0161b72063f79bd80af3cfefe28a4f20115610
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=11caa1d7b49a1fb13afef0967dee926b7db40837
Log:
port dns_win32
Changed paths:
M ext/standard/dns_win32.c
Diff:
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c
index 3e691cc..5d00b07 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;
}