From: Pierre Joye Date: Mon, 17 May 2010 18:55:35 +0000 (+0000) Subject: - #51844, checkdnsrr does not support types other than MX X-Git-Tag: php-5.3.3RC1~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a22cd02f2faa6af1a34b3726501042bf345e8933;p=php - #51844, checkdnsrr does not support types other than MX --- diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 8c94f27f4b..794912d641 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -122,7 +122,7 @@ PHP_FUNCTION(dns_check_record) } } - status = DnsQuery_A(hostname, DNS_TYPE_MX, DNS_QUERY_STANDARD, NULL, &pResult, NULL); + status = DnsQuery_A(hostname, type, DNS_QUERY_STANDARD, NULL, &pResult, NULL); if (status) { RETURN_FALSE;