com php-src: typo in var name: ext/standard/dns_win32.c
| From: | Pierre Joye | Date: | Wed, 07 May 2014 09:17:03 +0000 |
| Subject: | com php-src: typo in var name: ext/standard/dns_win32.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78300@lists.php.net to get a copy of this message | ||
Commit: 670feb3a530fc9c72095492390f15fe294644495
Author: Pierre Joye <pierre.php@gmail.com> Wed, 7 May 2014 11:17:03 +0200
Parents: 38c886a449a54574119a8eb1c6c5e5376acba6d8
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=670feb3a530fc9c72095492390f15fe294644495
Log:
typo in var name
Changed paths:
M ext/standard/dns_win32.c
Diff:
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c
index 0aa2359..3e691cc 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);
}