]> granicus.if.org Git - php/commitdiff
Document the changes to substr functions
authorColin O'Dell <colinodell@gmail.com>
Tue, 22 Oct 2019 10:32:41 +0000 (06:32 -0400)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 23 Oct 2019 09:22:12 +0000 (11:22 +0200)
UPGRADING

index 8b2bbfee460f145102e4d69287d6f304692e5872..40af9ca458827d51feed48f5a9131ea595b4f203 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -271,6 +271,10 @@ PHP 8.0 UPGRADE NOTES
     point. An explicit call to chr() can be used to restore the previous
     behavior.
   . The needle argument for strpos(), strrpos(), stripos(), strripos(), strstr() and stristr() can now be empty.
+  . The length argument for substr(), substr_count(), substr_compare(), and
+    iconv_substr() can now be null. Null values will behave as if no length
+    argument was provided and will therefore return the remainder of the string
+    instead of an empty string.
   . The 'salt' option of password_hash() is no longer supported. If the 'salt'
     option is used a warning is generated, the provided salt is ignored, and a
     generated salt is used instead.