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 | abf4853145a98abb01147036642558d2f79af345 (patch) | |
tree | 76499ee310d83ec4935f07165916bd29b445772c /ext/standard/dns_win32.c | |
parent | 8648b1beff40511821c3bf7e0110b69fe937acbd (diff) | |
download | php-git-abf4853145a98abb01147036642558d2f79af345.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 a15a3d0f4f..c00772bbe0 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -420,7 +420,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"); |