From: Tjerk Meesters Date: Tue, 15 Jul 2014 12:12:33 +0000 (+0800) Subject: Changed based on comments and make its behaviour equal to the Windows version X-Git-Tag: PRE_NATIVE_TLS_MERGE~92^2^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=977d84490b92019657aa16d063a1e44fef8f2f21;p=php Changed based on comments and make its behaviour equal to the Windows version --- diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 79e5f1a3ff..cdec56bf14 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -897,10 +897,10 @@ PHP_FUNCTION(dns_get_record) if (n < 0) { php_dns_free_handle(handle); - if (h_errno == NO_DATA) { + if (h_errno == NO_DATA || h_errno == HOST_NOT_FOUND) { continue; } else { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Dns Query failed"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "DNS Query failed"); zval_dtor(return_value); RETURN_FALSE; } diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index a784823dd3..0840e17d85 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -458,7 +458,7 @@ PHP_FUNCTION(dns_get_record) 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"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "DNS Query failed"); zval_dtor(return_value); RETURN_FALSE; }