Skip to content

Add host for php_network_getaddresses getaddrinfo failed error message. #7181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

beberlei
Copy link
Contributor

Based on https://twitter.com/greg0ire/status/1407039981328216067 I was thinking we could change this error message to include the failed host.

The modified tests with the 100 char length hostname might be an indicator for why its not the greatest idea, but on average hostnames are probably much shorter.

Is there a reason why its not included in the message? Security does not seem to be a problem, as host would not contain anything security related and displaying errors is already a security problem.

I checked a bit back in the commit history, the message has been this way forever (got back to 2003).

Copy link
Contributor

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

Thank you so much for working on this! It believe it will be of great help for complex situations where you connect to many things, as well as for simple situations where you want to be sure your configuration was picked up by the code that makes the connection.

@patrickallaert patrickallaert merged commit 0ca5ab4 into php:master Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants