summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-27 11:23:49 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-10-27 11:42:01 +0100
commitd776d25a8e6763bfe8cc283a4693d7d417d50ddd (patch)
tree6b71c980c5c9083cd7648f3495ab014b0edc0091 /UPGRADING
parent76e4bf3068bc7f92a2ece604344a92fd4d6c683d (diff)
downloadphp-git-d776d25a8e6763bfe8cc283a4693d7d417d50ddd.tar.gz
Don't throw for out of bounds offsets in strspn()
Make strspn($str1, $str2, $offset, $length) behaviorally equivalent to strspn(substr($str1, $offset, $length), $str2) by not throwing for out of bounds offset. There have been two reports that this change cause issues, including bug #80285.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING2
1 files changed, 0 insertions, 2 deletions
diff --git a/UPGRADING b/UPGRADING
index e6b5e5076f..1a270ba415 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -532,8 +532,6 @@ 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