com php-src: Document the changes to substr functions: UPGRADING
| From: | Nikita Popov | Date: | Wed, 23 Oct 2019 09:22:12 +0000 |
| Subject: | com php-src: Document the changes to substr functions: UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109023@lists.php.net to get a copy of this message | ||
Commit: 80103bdb78544495d6a34cbd75fac25492832a95
Author: Colin O'Dell <colinodell@gmail.com> Tue, 22 Oct 2019 06:32:41 -0400
Committer: Nikita Popov <nikita.ppv@gmail.com> Wed, 23 Oct 2019 11:22:12 +0200
Parents: 8efbbcae0cf883011d930c3d004a92619703725a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=80103bdb78544495d6a34cbd75fac25492832a95
Log:
Document the changes to substr functions
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index 8b2bbfee460..40af9ca4588 100644
--- 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.