@@ -118,6 +118,14 @@ PHP 8.3 UPGRADE NOTES
118
118
4. Deprecated Functionality
119
119
========================================
120
120
121
+ - Core
122
+ . Using the ++ operator on empty, non-numeric, or non-alphanumeric strings
123
+ is now deprecated. Moreover, incrementing non-numeric strings is soft
124
+ deprecated and the new str_increment() function should be used instead.
125
+ RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
126
+ . Using the -- operator on empty or non-numeric strings is now deprecated.
127
+ RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
128
+
121
129
- Intl
122
130
. The U_MULTIPLE_DECIMAL_SEP*E*RATORS constant had been deprecated, using
123
131
the U_MULTIPLE_DECIMAL_SEP*A*RATORS instead is recommended.
@@ -300,6 +308,10 @@ PHP 8.3 UPGRADE NOTES
300
308
- Sockets:
301
309
. Added socket_atmark to checks if the socket is OOB marked.
302
310
311
+ - Standard:
312
+ . Added the str_increment() and str_decrement() functions.
313
+ RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
314
+
303
315
- Zip:
304
316
. Added ZipArchive::setArchiveFlag and ZipArchive::getArchiveFlag methods.
305
317
@@ -321,6 +333,13 @@ PHP 8.3 UPGRADE NOTES
321
333
not reachable except by iterating over the WeakMap (reachability via
322
334
iteration is considered weak). Previously, such entries would never be
323
335
automatically removed. (See GH-10932.)
336
+ . The ++ and -- operators now emit warnings when attempting to increment
337
+ values of type bool as this will change in the next major version.
338
+ A warning is emitted when trying to decrement values of type null, as
339
+ this will change in the next major version.
340
+ Internal objects that implement an _IS_NUMBER cast but not a do_operator
341
+ handler that overrides addition and substraction now can be incremented
342
+ and decrement as if one would do $o += 1 or $o -= 1
324
343
325
344
- DOM:
326
345
. The DOM lifetime mechanism has been reworked such that implicitly removed
0 commit comments