diff options
author | Pierre Joye <pierre.php@gmail.com> | 2014-05-13 07:06:27 +0200 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2014-05-13 07:06:27 +0200 |
commit | 11caa1d7b49a1fb13afef0967dee926b7db40837 (patch) | |
tree | c65f8b15155d59a2931882e94aec9ec6c514a8c2 | |
parent | bc0161b72063f79bd80af3cfefe28a4f20115610 (diff) | |
download | php-git-11caa1d7b49a1fb13afef0967dee926b7db40837.tar.gz |
port dns_win32
-rw-r--r-- | ext/standard/dns_win32.c | 8 |
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; } |