File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -896,10 +896,10 @@ PHP_FUNCTION(dns_get_record)
896
896
897
897
if (n < 0 ) {
898
898
php_dns_free_handle (handle );
899
- if (h_errno == NO_DATA ) {
899
+ if (h_errno == NO_DATA || h_errno == HOST_NOT_FOUND ) {
900
900
continue ;
901
901
} else {
902
- php_error_docref (NULL TSRMLS_CC , E_WARNING , "Dns Query failed ");
902
+ php_error_docref (NULL TSRMLS_CC , E_WARNING , "DNS Query failed ");
903
903
zval_dtor (return_value );
904
904
RETURN_FALSE ;
905
905
}
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ PHP_FUNCTION(dns_get_record)
456
456
if (status == DNS_INFO_NO_RECORDS || status == DNS_ERROR_RCODE_NAME_ERROR ) {
457
457
continue ;
458
458
} else {
459
- php_error_docref (NULL TSRMLS_CC , E_WARNING , "Dns Query failed ");
459
+ php_error_docref (NULL TSRMLS_CC , E_WARNING , "DNS Query failed ");
460
460
zval_dtor (return_value );
461
461
RETURN_FALSE ;
462
462
}
You can’t perform that action at this time.
0 commit comments