# socket_addrinfo_lookup changes to get resolution failures errors

- Thread: https://externals.io/message/129478
- Original archive: https://news-web.php.net/php.internals/129478
- Started by David CARLIER on 2025-11-29T19:59:32+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #129478 — David CARLIER — 2025-11-29T19:59:32+00:00

URL: https://externals.io/message/129478#129478

Hi,

A feature request about this had been created recently,
https://github.com/php/php-src/issues/20532 and I do agree it would be an
useful information to get rather just `FALSE` at the moment.

The actual PR <https://github.com/php/php-src/pull/20534> just return the
error code but bukka raised a good point, why not just adding an optional
parameter if you wish to know about this, changing towards this direction
does not bother me I ll very likely lean towards it.

As said however I do not think using `socket_last_error()` for this would be
a good thing
<https://github.com/php/php-src/pull/20534#issuecomment-3591802496>.

Let me know your thoughts on this.

Cheers !
