diff options
author | Pierre Joye <pajoye@php.net> | 2010-09-06 10:57:42 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-09-06 10:57:42 +0000 |
commit | 80ddb8d95cfcfcaa9f69554d9b004e20fa97ffb3 (patch) | |
tree | 84bd0b074050966d4aed7a1aaaa39b31950ae073 /ext/standard/dns_win32.c | |
parent | 4275e7428be06162263a8644fcc5b3a43ba75ece (diff) | |
download | php-git-80ddb8d95cfcfcaa9f69554d9b004e20fa97ffb3.tar.gz |
- fix bug #52260, catch all DNS not found error
Diffstat (limited to 'ext/standard/dns_win32.c')
-rw-r--r-- | ext/standard/dns_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index bd12c4adea..ac3aab00b1 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -418,7 +418,7 @@ PHP_FUNCTION(dns_get_record) status = DnsQuery_A(hostname, type_to_fetch, DNS_QUERY_STANDARD, NULL, &pResult, NULL); if (status) { - if (status == DNS_INFO_NO_RECORDS) { + if (status == DNS_INFO_NO_RECORDS || status == DNS_ERROR_RCODE_NAME_ERROR) { continue; } else { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Dns Query failed"); |