Skip to content

Conversation

@NattyNarwhal
Copy link
Member

On IBM i, getifaddrs is available renamed as Qp2getifaddrs; freeifaddrs and struct ifaddr follow a similar fate. I assume this is in case AIX decides to add it (as if). As such, just use the same implementation, but rename the standard ones to the IBM i definitions and include its header.

On PHP 7.x, an ifdef to basic_functions.c is also needed, otherwise the function will not be registered. Technically, the fact PHP 8 always registers this function is a bug, but hasn't been caught, it seems.

On IBM i, getifaddrs is available renamed as Qp2getifaddrs; freeifaddrs
and struct ifaddr follow a similar fate. I assume this is in case AIX
decides to add it (as if). As such, just use the same implementation,
but rename the standard ones to the IBM i definitions and include its
header.

On PHP 7.x, an ifdef to basic_functions.c is also needed, otherwise the
function will not be registered. Technically, the fact PHP 8 always
registers this function is a bug, but hasn't been caught, it seems.
@krakjoe
Copy link
Member

krakjoe commented Jun 11, 2021

Merged as ca6f3f6 (4f51a11)

Thanks.

@krakjoe krakjoe closed this Jun 11, 2021
krakjoe added a commit that referenced this pull request Jun 11, 2021
krakjoe added a commit that referenced this pull request Jun 11, 2021
* PHP-8.0:
  fix bad refactor of #7136
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.

2 participants