summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2014-05-14 20:05:54 +0200
committerPierre Joye <pierre.php@gmail.com>2014-05-14 20:05:54 +0200
commit01513976e74537d76306f81f08e0a608835703cb (patch)
tree75f5cfa4698f2e2372bfbf1356c2c229a1990df0
parentc26d79c8541a2f20a2d92838b5f90b72ec239c8b (diff)
downloadphp-git-01513976e74537d76306f81f08e0a608835703cb.tar.gz
ptr needed here
-rw-r--r--ext/standard/dns_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c
index bf2100c1e8..f255ebba63 100644
--- a/ext/standard/dns_win32.c
+++ b/ext/standard/dns_win32.c
@@ -213,7 +213,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
add_assoc_string(subarray, "type", "TXT");
- array_init(entries);
+ array_init(&entries);
for (i = 0; i < count; i++) {
txt_len += strlen(data_txt->pStringArray[i]) + 1;
@@ -227,7 +227,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
add_next_index_stringl(&entries, data_txt->pStringArray[i], len);
txt_dst += len;
}
- tct->len = txt_dst - txt->val;
+ txt->len = txt_dst - txt->val;
add_assoc_str(subarray, "txt", txt);
add_assoc_zval(subarray, "entries", &entries);
}