From: Thiemo Kreuz Date: Sat, 24 Oct 2020 10:26:27 +0000 (+0200) Subject: Document breaking change in strspn/strcspn X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c28dc0ce9fabe1635cd2e70f73e5598b8e9b021;p=php Document breaking change in strspn/strcspn See https://phabricator.wikimedia.org/T264502. [ci skip] --- diff --git a/UPGRADING b/UPGRADING index 1a270ba415..e6b5e5076f 100644 --- 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