Skip to content

Remove deprecated getaddrinfo flags #4492

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

Closed
wants to merge 1 commit into from
Closed

Conversation

viest
Copy link
Member

@viest viest commented Aug 3, 2019

glibc 2.28

The AI_IDN_ALLOW_UNASSIGNED and NI_IDN_ALLOW_UNASSIGNED flags for the getaddrinfo and getnameinfo functions have been deprecated. The behavior previously selected by them is now always enabled.

I hope we should follow glibc deprecation and remove these flags.

The AI_IDN_ALLOW_UNASSIGNED and NI_IDN_ALLOW_UNASSIGNED flags for the getaddrinfo and getnameinfo functions have been deprecated. The behavior previously selected by them is now always enabled.

I hope we should follow glibc deprecation and remove these flags.
@nikic
Copy link
Member

nikic commented Aug 23, 2019

Removing these in master should be fine, but we should add a deprecation in 7.4 first. It's not possible to deprecate constants, so the next best thing is to check for uses of the constant in functions that accept it. E.g. socket_addrinfo_lookup could check ai_flags for one of the deprecated flags.

cc @derickr

@viest
Copy link
Member Author

viest commented Aug 24, 2019

@nikic you are right.

I submitted a PR #4615 to the PHP7.4 branch. I didn't delete the deprecated flag, but throw a deprecated warning.

cc @derickr

@nikic
Copy link
Member

nikic commented Aug 26, 2019

Merged as 48040cf together with a removal of the new deprecation code. Thanks!

@nikic nikic closed this Aug 26, 2019
@carusogabriel carusogabriel added this to the PHP 8.0 milestone May 29, 2020
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.

3 participants