From 9c28dc0ce9fabe1635cd2e70f73e5598b8e9b021 Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Sat, 24 Oct 2020 12:26:27 +0200 Subject: [PATCH] Document breaking change in strspn/strcspn See https://phabricator.wikimedia.org/T264502. [ci skip] --- UPGRADING | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0