Skip to content

Commit 66659d6

Browse files
committed
[ci skip] Update UPGRADING
1 parent 5836c70 commit 66659d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ PHP 8.0 UPGRADE NOTES
113113
* Attempting to use a resource as an array key.
114114
* Attempting to use null, a boolean or a float as a string offset.
115115
* Attempting to read an out-of-bounds string offset.
116+
* Attempting to assign an empty string to a string offset.
116117

117118
RFC: https://wiki.php.net/rfc/engine_warnings
119+
. Attempting to assign multiple bytes to a string offset will now emit a warning.
118120
. Unexpected characters in source files (such as null bytes outside of
119121
strings) will now result in a ParseError exception instead of a compile
120122
warning.
@@ -209,6 +211,8 @@ PHP 8.0 UPGRADE NOTES
209211
. A non-string pattern argument to mb_ereg_replace() will now be interpreted
210212
as a string instead of an ASCII codepoint. The previous behavior may be
211213
restored with an explicit call to chr().
214+
. The needle argument for mb_strpos(), mb_strrpos(), mb_stripos(), mb_strripos(), mb_strstr() and mb_stristr()
215+
can now be empty.
212216
. The $is_hex parameter, which was not used internally, has been removed from
213217
mb_decode_numericentity().
214218
. The legacy behaviour of passing the encoding as the third argument instead of an offset for the mb_strrpos

0 commit comments

Comments
 (0)