summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-06-26 11:04:55 +0000
committerAntony Dovgal <tony2001@php.net>2007-06-26 11:04:55 +0000
commit58ac8d559d6cb22b8ca071ca08ec6ee52a5cc51c (patch)
treead4b887f1db231a82b96a718318edfe7d5c29312 /ext/standard/dns.c
parent83e33eac024a9a88aa2d22ac72f2182da9379afb (diff)
downloadphp-git-58ac8d559d6cb22b8ca071ca08ec6ee52a5cc51c.tar.gz
MFH: fix #41795 (checkdnsrr does not support DNS_TXT type)
patch by lucas at facebook dot com
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index ee371e41b3..549a1c61f7 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -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;