mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ptr needed here
This commit is contained in:
parent
c26d79c854
commit
01513976e7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue