Skip to content

Remove deprecated getaddrinfo flags#4492

Closed
viest wants to merge 1 commit into
php:masterfrom
viest:viest-glibc-2.28
Closed

Remove deprecated getaddrinfo flags#4492
viest wants to merge 1 commit into
php:masterfrom
viest:viest-glibc-2.28

Conversation

@viest

@viest viest commented Aug 3, 2019

Copy link
Copy Markdown
Member

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

nikic commented Aug 23, 2019

Copy link
Copy Markdown
Member

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

viest commented Aug 24, 2019

Copy link
Copy Markdown
Member Author

@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

nikic commented Aug 26, 2019

Copy link
Copy Markdown
Member

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