com php-src: fix datatype mismatch: ext/standard/dns_win3 2.c

From: Date: Thu, 23 Oct 2014 08:29:58 +0000
Subject: com php-src: fix datatype mismatch: ext/standard/dns_win3 2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82482@lists.php.net to get a copy of this message
Commit: ddaae1a02ca5fae8f0397ae2da01320c39a2a41e Author: Anatol Belski <ab@php.net> Thu, 23 Oct 2014 09:19:46 +0200 Parents: e70dce7d995b64331951e70d2899addc151dc8fa Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ddaae1a02ca5fae8f0397ae2da01320c39a2a41e Log: fix datatype mismatch Changed paths: M ext/standard/dns_win32.c Diff: diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 865ad30..963d1f7 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -208,7 +208,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw, DWORD count = data_txt->dwStringCount; zend_string *txt; char *txt_dst; - long txt_len = 0; + size_t txt_len = 0; zval entries; add_assoc_string(subarray, "type", "TXT"); @@ -222,7 +222,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw, txt = zend_string_safe_alloc(txt_len, 2, 0, 0); txt_dst = txt->val; for (i = 0; i < count; i++) { - int len = strlen(data_txt->pStringArray[i]); + size_t len = strlen(data_txt->pStringArray[i]); memcpy(txt_dst, data_txt->pStringArray[i], len); add_next_index_stringl(&entries, data_txt->pStringArray[i], len); txt_dst += len;

« previous php.cvs (#82482) next »