com php-src: Add upgrading note for the resource to object migration in ext/sockets: UPGRADING
| From: | Máté Kocsis | Date: | Mon, 03 Aug 2020 21:41:00 +0000 |
| Subject: | com php-src: Add upgrading note for the resource to object migration in ext/sockets: UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112526@lists.php.net to get a copy of this message | ||
Commit: 71bfa5344ab207072f4cd25745d7023096338385
Author: Máté Kocsis <kocsismate@woohoolabs.com> Mon, 3 Aug 2020 23:41:00 +0200
Parents: e2b468740355db7a35fa6493359966fb3f3465d2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=71bfa5344ab207072f4cd25745d7023096338385
Log:
Add upgrading note for the resource to object migration in ext/sockets
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index 80a37a04b4..15e19f2782 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -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.