Skip to content

Commit 9c28dc0

Browse files
thiemowmdenikic
authored andcommitted
Document breaking change in strspn/strcspn
See https://phabricator.wikimedia.org/T264502. [ci skip]
1 parent 7f462c9 commit 9c28dc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ PHP 8.0 UPGRADE NOTES
532532
. parse_str() can no longer be used without specifying a result array.
533533
. fgetss() has been removed.
534534
. The string.strip_tags filter has been removed.
535+
. strspn() and strcspn() now throw a ValueError when the start or length
536+
argument exceed the bounds of the string.
535537
. The needle argument of strpos(), strrpos(), stripos(), strripos(), strstr(),
536538
strchr(), strrchr(), and stristr() will now always be interpreted as a
537539
string. Previously non-string needles were interpreted as an ASCII code

0 commit comments

Comments
 (0)