Skip to content
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

Add safe inet_pton #428

Closed
wants to merge 1 commit into from
Closed

Conversation

simPod
Copy link
Contributor

@simPod simPod commented Oct 23, 2023

Resolves #270

(is not generated from docs)

* @return string Returns the in_addr representation of the given ip,
* @throws NetworkException
*/
function inet_pton(string $ip): string
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we know why we need a special case here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

"returns false on error" is calculated by a bunch of regexes matching against the human-readable text of the descriptions D:

#498 adds this case into the regex rather than manually adding a special case

@shish shish closed this Dec 3, 2024
@simPod simPod deleted the inet_pton branch December 3, 2024 13:18
@staabm
Copy link
Collaborator

staabm commented Dec 3, 2024

@simPod thanks for taking the time you put into it and making us aware of the problem

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.

add inet_pton to have pair with inet_ntop
3 participants