]> granicus.if.org Git - php/commitdiff
fix #41795 (checkdnsrr does not support DNS_TXT type)
authorAntony Dovgal <tony2001@php.net>
Tue, 26 Jun 2007 11:03:42 +0000 (11:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 26 Jun 2007 11:03:42 +0000 (11:03 +0000)
ext/standard/dns.c

index f99e59e92b81ce7a626acc2054941fbbe18bc82a..6fce4e2d383a1cac1d6d48071c8d8b3c33753647 100644 (file)
@@ -276,6 +276,7 @@ PHP_FUNCTION(dns_check_record)
                else if (!strcasecmp("PTR",   rectype)) type = DNS_T_PTR;
                else if (!strcasecmp("ANY",   rectype)) type = DNS_T_ANY;
                else if (!strcasecmp("SOA",   rectype)) type = DNS_T_SOA;
+               else if (!strcasecmp("TXT",   rectype)) type = DNS_T_TXT;
                else if (!strcasecmp("CNAME", rectype)) type = DNS_T_CNAME;
                else if (!strcasecmp("AAAA",  rectype)) type = DNS_T_AAAA;
                else if (!strcasecmp("SRV",   rectype)) type = DNS_T_SRV;