]> granicus.if.org Git - php/commitdiff
MFH: fix #41795 (checkdnsrr does not support DNS_TXT type)
authorAntony Dovgal <tony2001@php.net>
Tue, 26 Jun 2007 11:04:55 +0000 (11:04 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 26 Jun 2007 11:04:55 +0000 (11:04 +0000)
patch by lucas at facebook dot com

NEWS
ext/standard/dns.c

diff --git a/NEWS b/NEWS
index 499a01e493e362ff42717d2e2d29612452d1cf75..be6ee7c21dd6289db25f99baab41ab97e6d7a1f0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,8 @@ PHP                                                                        NEWS
 - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory 
   already exists). (Pierre)
 
+- Fixed bug #41795 (checkdnsrr does not support DNS_TXT type). 
+  (lucas at facebook dot com, Tony)
 - Fixed bug #41773 (php_strip_whitespace() sends headers with errors 
   suppressed). (Tony)
 - Fixed bug #41765 (Recode crashes/does not work on amd64). 
index ee371e41b33dff18cdd14d5bac3c0bedfc20b04c..549a1c61f7353071d501b744d9e5401a3266c448 100644 (file)
@@ -289,6 +289,7 @@ PHP_FUNCTION(dns_check_record)
                        else if (!strcasecmp("PTR",   Z_STRVAL_PP(arg2))) type = DNS_T_PTR;
                        else if (!strcasecmp("ANY",   Z_STRVAL_PP(arg2))) type = DNS_T_ANY;
                        else if (!strcasecmp("SOA",   Z_STRVAL_PP(arg2))) type = DNS_T_SOA;
+                       else if (!strcasecmp("TXT",   Z_STRVAL_PP(arg2))) type = DNS_T_TXT;
                        else if (!strcasecmp("CNAME", Z_STRVAL_PP(arg2))) type = DNS_T_CNAME;
                        else if (!strcasecmp("AAAA",  Z_STRVAL_PP(arg2))) type = DNS_T_AAAA;
                        else if (!strcasecmp("SRV",   Z_STRVAL_PP(arg2))) type = DNS_T_SRV;