From: Pierre Joye Date: Wed, 7 May 2014 09:17:03 +0000 (+0200) Subject: typo in var name X-Git-Tag: POST_PHPNG_MERGE~385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=670feb3a530fc9c72095492390f15fe294644495;p=php typo in var name --- diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 0aa23599d2..3e691cceca 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -154,9 +154,10 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw, return; } - ALLOC_INIT_ZVAL(*subarray); +/* ALLOC_INIT_ZVAL(*subarray); array_init(*subarray); - +*/ + ZVAL_NEW_ARR(*subarray); add_assoc_string(*subarray, "host", pRec->pName); add_assoc_string(*subarray, "class", "IN"); add_assoc_long(*subarray, "ttl", ttl); @@ -229,7 +230,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); }