]> granicus.if.org Git - php/commitdiff
Document breaking change in strspn/strcspn
authorThiemo Kreuz <thiemowmde@users.noreply.github.com>
Sat, 24 Oct 2020 10:26:27 +0000 (12:26 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 26 Oct 2020 07:58:51 +0000 (08:58 +0100)
See https://phabricator.wikimedia.org/T264502.

[ci skip]

UPGRADING

index 1a270ba41555ff7b508a20a91adbe0d75688eed8..e6b5e5076fac6de9376fc007b958622d1f2a0902 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -532,6 +532,8 @@ PHP 8.0 UPGRADE NOTES
   . parse_str() can no longer be used without specifying a result array.
   . fgetss() has been removed.
   . The string.strip_tags filter has been removed.
+  . strspn() and strcspn() now throw a ValueError when the start or length
+    argument exceed the bounds of the string.
   . The needle argument of strpos(), strrpos(), stripos(), strripos(), strstr(),
     strchr(), strrchr(), and stristr() will now always be interpreted as a
     string. Previously non-string needles were interpreted as an ASCII code