diff options
author | Pierre Joye <pajoye@php.net> | 2010-05-17 18:55:35 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-05-17 18:55:35 +0000 |
commit | 46c4029341326277d490f606fd668aaf970f00da (patch) | |
tree | cf7bf54a0cdc0c266135c52abb8ea5ab9a8e8851 /ext/standard/dns_win32.c | |
parent | 04e72491bb965cafcb6553fa62f868136174b9f3 (diff) | |
download | php-git-46c4029341326277d490f606fd668aaf970f00da.tar.gz |
- #51844, checkdnsrr does not support types other than MX
Diffstat (limited to 'ext/standard/dns_win32.c')
-rw-r--r-- | ext/standard/dns_win32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 8c94f27f4b..0823cc0737 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -122,8 +122,10 @@ 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; } |