From: Pierre Joye Date: Thu, 17 Jun 2010 09:26:29 +0000 (+0000) Subject: - Fix bug #52101, dns_get_record()garbage in 'ipv6' field X-Git-Tag: php-5.4.0alpha1~191^2~1275 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc226fafed9149734c1a9b55e847ca54d863ab37;p=php - Fix bug #52101, dns_get_record()garbage in 'ipv6' field --- diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 0823cc0737..a15a3d0f4f 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -276,6 +276,12 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, zval **s } } + if (have_v6_break && in_v6_break) { + tp[0] = ':'; + tp++; + } + tp[0] = '\0'; + add_assoc_string(*subarray, "type", "AAAA", 1); add_assoc_string(*subarray, "ipv6", buf, 1); }