Skip to content

Commit

Permalink
Add upgrading note for the resource to object migration in ext/sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Aug 3, 2020
1 parent e2b4687 commit 71bfa53
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,16 @@ PHP 8.0 UPGRADE NOTES
. ReflectionType::isBuiltin() method has been moved to ReflectionNamedType.
ReflectionUnionType does not have it.

- Socket:
- Sockets:
. The deprecated AI_IDN_ALLOW_UNASSIGNED and AI_IDN_USE_STD3_ASCII_RULES
flags for socket_addrinfo_lookup() have been removed.
. socket_create(), socket_create_listen(), socket_accept(),
socket_import_stream(), socket_addrinfo_connect(), socket_addrinfo_bind(),
and socket_wsaprotocol_info_import() will now return a Socket object rather
than a resource. Return value checks using is_resource() should be replaced
with checks for `false`.
. socket_addrinfo_lookup() will now return an array of AddressInfo objects
rather than resources.

- SPL:
. SplFileObject::fgetss() has been removed.
Expand Down

0 comments on commit 71bfa53

Please sign in to comment.