]> granicus.if.org Git - php/commitdiff
- #51844, checkdnsrr does not support types other than MX
authorPierre Joye <pajoye@php.net>
Mon, 17 May 2010 18:55:35 +0000 (18:55 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 17 May 2010 18:55:35 +0000 (18:55 +0000)
ext/standard/dns_win32.c

index 8c94f27f4b0b29a8cf3b625fa53b92718e610e08..794912d64137594230989567387b62dd97dbba8b 100644 (file)
@@ -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;