mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
- fix bug #52260, catch all DNS not found error
This commit is contained in:
parent
4275e7428b
commit
80ddb8d95c
2
NEWS
2
NEWS
@ -67,6 +67,8 @@
|
||||
- Fixed bug #50590 (IntlDateFormatter::parse result is limited to the integer
|
||||
range). (Stas)
|
||||
- Fixed bug #50481 (Storing many SPLFixedArray in an array crashes). (Felipe)
|
||||
- Fixed bug #52260 (dns_get_record fails with non-existing domain on Windows).
|
||||
(a_jelly_doughnut at phpbb dot com, Pierre)
|
||||
|
||||
22 Jul 2010, PHP 5.3.3
|
||||
- Upgraded bundled sqlite to version 3.6.23.1. (Ilia)
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user