Skip to content

Commit 71bfa53

Browse files
committed
Add upgrading note for the resource to object migration in ext/sockets
1 parent e2b4687 commit 71bfa53

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

UPGRADING

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,16 @@ PHP 8.0 UPGRADE NOTES
459459
. ReflectionType::isBuiltin() method has been moved to ReflectionNamedType.
460460
ReflectionUnionType does not have it.
461461

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

466473
- SPL:
467474
. SplFileObject::fgetss() has been removed.

0 commit comments

Comments
 (0)