com php-src: Add NEWS/UPGRADING for negative string offsets: NEWS UPGRADING
| From: | Nikita Popov | Date: | Wed, 09 Mar 2016 13:41:38 +0000 |
| Subject: | com php-src: Add NEWS/UPGRADING for negative string offsets: NEWS UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91293@lists.php.net to get a copy of this message | ||
Commit: f65486f13d04f5cc0d484117fefeea6e128f3771
Author: Nikita Popov <nikic@php.net> Wed, 9 Mar 2016 14:41:08 +0100
Parents: d0d9e7251ebfa28c25ed43619fe92c5ac3452e52
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f65486f13d04f5cc0d484117fefeea6e128f3771
Log:
Add NEWS/UPGRADING for negative string offsets
Changed paths:
M NEWS
M UPGRADING
Diff:
diff --git a/NEWS b/NEWS
index 0aff059..fe46403 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,8 @@ PHP NEWS
. Implemented the RFC
Support Class Constant Visibility. (Sean DuBois,
Reeze Xia, Dmitry)
. Added void return type. (Andrea)
+ . Added support for negative string offsets in string offset syntax and
+ various string functions. (Francois)
- FTP:
. Implemented FR #55651 (Option to ignore the returned FTP PASV address).
diff --git a/UPGRADING b/UPGRADING
index 94cea6f..1e944d9 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -32,6 +32,9 @@ PHP 7.1 UPGRADE NOTES
- Core
. Added void return type, which requires that a function not return a value.
(RFC: https://wiki.php.net/rfc/void_return_type)
+ . String offset access now supports negative references, which will be
+ counted from the end of the string.
+ (RFC: https://wiki.php.net/rfc/negative-string-offsets)
========================================
3. Changes in SAPI modules
@@ -66,6 +69,11 @@ PHP 7.1 UPGRADE NOTES
- unpack() accepts an additional optional $offset argument.. '@' format code
(that specifes an absolute position) is applyed to input data after
the $offset argument.
+- strpos(), stripos(), substr_count(), grapheme_strpos(), grapheme_stripos(),
+ grapheme_extract(), iconv_strpos(), mb_strimwidth(), mb_ereg_search_setpos(),
+ mb_strpos() and mb_stripos() now accept negative string offstes.
+- substr_count() and mb_strimwidth() additionally also accept negative length.
+- file_get_contents() accepts a negative seek offset if the stream is seekable.
========================================
6. New Functions