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

get rid of inet_ntoa and inet_aton calls #4199

Merged
merged 2 commits into from
May 13, 2021
Merged

Conversation

remicollet
Copy link
Contributor

These functions are deprecated and may be forbidden in some distro.

Already erraticated in php-src

third-party file seems a copy paste from ph-src, perhaps need a full refresh

add_assoc_string(return_value, "host", tmp);
} else {
php_swoole_fatal_error(E_WARNING, "inet_ntop() failed");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same / consistent behavior than the below one for IPv6

@remicollet
Copy link
Contributor Author

Notice: in php-src new call usage are conditional (#ifdef HAVE_NET...) but are already used in swoole without such condition
(btw, probably worth to be clean in php-src)

@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #4199 (2641cdc) into master (6797e68) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4199      +/-   ##
==========================================
+ Coverage   50.11%   50.15%   +0.03%     
==========================================
  Files          71       71              
  Lines       14266    14267       +1     
==========================================
+ Hits         7149     7155       +6     
+ Misses       7117     7112       -5     
Impacted Files Coverage Δ
src/coroutine/socket.cc 38.97% <100.00%> (ø)
src/network/address.cc 92.10% <100.00%> (+0.21%) ⬆️
src/os/wait.cc 74.11% <0.00%> (-7.06%) ⬇️
src/os/msg_queue.cc 57.62% <0.00%> (-3.39%) ⬇️
src/protocol/base.cc 63.15% <0.00%> (+1.97%) ⬆️
src/os/process_pool.cc 60.14% <0.00%> (+2.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6797e68...2641cdc. Read the comment docs.

@matyhtf matyhtf merged commit b262146 into swoole:master May 13, 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.

None yet

2 participants