Skip to content

Sockets: add changelog entries for PHP 8.5 changes#5535

Merged
jordikroon merged 2 commits into
php:masterfrom
lacatoire:changelog/sockets-8.5
May 11, 2026
Merged

Sockets: add changelog entries for PHP 8.5 changes#5535
jordikroon merged 2 commits into
php:masterfrom
lacatoire:changelog/sockets-8.5

Conversation

@lacatoire
Copy link
Copy Markdown
Member

PHP 8.5 brings several Sockets changes already documented in
`appendices/migration85` but missing from the per-function changelogs.

BC breaks:

  • socket_bind, socket_create_listen, socket_sendto: ValueError on out-of-range port
  • socket_addrinfo_lookup: TypeError/ValueError on hints array values
  • socket_set_option: exception on multicast misuse + ValueError on non AF_INET/AF_INET6

New features:

  • socket_create: AF_PACKET family support
  • socket_getsockname: interface index for AF_PACKET sockets

Same spirit as #5528.

Documented in appendices/migration85, missing from per-function changelogs:

BC breaks:
- socket_bind, socket_create_listen, socket_sendto: ValueError on out-of-range port
- socket_addrinfo_lookup: TypeError/ValueError on hints array values
- socket_set_option: exception on multicast misuse + ValueError on non AF_INET/AF_INET6

New features:
- socket_create: AF_PACKET family support
- socket_getsockname: interface index for AF_PACKET sockets
@jordikroon
Copy link
Copy Markdown
Member

Besides adding a changelog entry we should document AF_PACKET as well (Linux only). Would you mind also addingAF_DIVERT which was added in PHP 8.3 (FreeBSD only) while were are revising this.

Per @jordikroon's review on php#5535: document the new AF_PACKET constant
(Linux only, PHP 8.5.0) and flesh out AF_DIVERT (FreeBSD only, PHP 8.3.0)
which previously only stated its availability.
@jordikroon jordikroon merged commit 890cc22 into php:master May 11, 2026
2 checks passed
@lacatoire lacatoire deleted the changelog/sockets-8.5 branch May 11, 2026 18:18
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.

2 participants