diff options
author | George Peter Banyard <girgias@php.net> | 2020-01-25 12:32:55 +0100 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-01-25 12:34:42 +0100 |
commit | 300d4df65426522d5337bbfa0fe6b5d28a4387bc (patch) | |
tree | 634c58d08f2ce9e52d7f7798e276534499489b4d | |
parent | ba82e18755098a7d303e8bc3a92cf57adcfc75dc (diff) | |
download | php-git-300d4df65426522d5337bbfa0fe6b5d28a4387bc.tar.gz |
Add mention about empty needles for strrch() functions in UPGRADING [ci skip]
-rw-r--r-- | UPGRADING | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -217,8 +217,8 @@ PHP 8.0 UPGRADE NOTES . A non-string pattern argument to mb_ereg_replace() will now be interpreted as a string instead of an ASCII codepoint. The previous behavior may be restored with an explicit call to chr(). - . The needle argument for mb_strpos(), mb_strrpos(), mb_stripos(), mb_strripos(), mb_strstr() and mb_stristr() - can now be empty. + . The needle argument for mb_strpos(), mb_strrpos(), mb_stripos(), mb_strripos(), + mb_strstr(), mb_stristr(), mb_strrchr() and mb_strrichr() can now be empty. . The $is_hex parameter, which was not used internally, has been removed from mb_decode_numericentity(). . The legacy behaviour of passing the encoding as the third argument instead of an offset for the mb_strrpos @@ -286,7 +286,8 @@ PHP 8.0 UPGRADE NOTES string. Previously non-string needles were interpreted as an ASCII code 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 needle argument for strpos(), strrpos(), stripos(), strripos(), strstr(), + stristr() and strrchr() 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 |