Skip to content

Conversation

datibbaw
Copy link
Contributor

This aims to fix bug 53092 by making dns_get_record() return false when an error has occurred during the query.

It's similar to its Windows counter part and adds a few useful warning messages when a request fails.

if (h_errno == NO_DATA) {
continue;
} else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Dns Query failed");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "DNS query failed".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lstrojny Hmm, yes. That means I should probably fix that in the Windows code as well :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes 😄

@Gunni
Copy link

Gunni commented Jul 21, 2014

Original reporter here: if this works, then highly supported. Only 4 years!

@smalyshev smalyshev added the Bug label Dec 1, 2014
@smalyshev
Copy link
Contributor

merged

@smalyshev smalyshev closed this Dec 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants