Skip to content

Commit d7243ce

Browse files
committed
Add UPGRADING note for substr() behavior
[ci skip]
1 parent 902f634 commit d7243ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ PHP 8.0 UPGRADE NOTES
608608
. Calling crypt() without an explicit salt is no longer supported. If you
609609
would like to produce a strong hash with an auto-generated salt, use
610610
password_hash() instead.
611+
. substr(), mb_substr(), iconv_substr() and grapheme_substr() now consistently
612+
clamp out-of-bounds offsets to the string boundary. Previously, false was
613+
returned instead of the empty string in some cases.
611614

612615
- Sysvmsg:
613616
. msg_get_queue() will now return an SysvMessageQueue object rather than a

0 commit comments

Comments
 (0)