summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-06-17 09:26:29 +0000
committerPierre Joye <pajoye@php.net>2010-06-17 09:26:29 +0000
commitbc226fafed9149734c1a9b55e847ca54d863ab37 (patch)
treee940b683be5ea145c4c52c2eafe8870cfb800454
parent13b692e4c967f00ce1fc34093821135281f8af7a (diff)
downloadphp-git-bc226fafed9149734c1a9b55e847ca54d863ab37.tar.gz
- Fix bug #52101, dns_get_record()garbage in 'ipv6' field
-rw-r--r--ext/standard/dns_win32.c6
1 files changed, 6 insertions, 0 deletions
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);
}