com php-src: Expand UPGRADING and NEWS re: numeric strings changes: NEWS UPGRADING
| From: | Andrea Faulds | Date: | Wed, 30 Mar 2016 12:26:27 +0000 |
| Subject: | com php-src: Expand UPGRADING and NEWS re: numeric strings changes: NEWS UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91548@lists.php.net to get a copy of this message | ||
Commit: 5be140004d8079dca6e91801c1857d1119bf4408
Author: Andrea Faulds <ajf@ajf.me> Wed, 30 Mar 2016 13:26:27 +0100
Parents: 527435371981269463c2cbda6b457cdf29d6151b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5be140004d8079dca6e91801c1857d1119bf4408
Log:
Expand UPGRADING and NEWS re: numeric strings changes
Changed paths:
M NEWS
M UPGRADING
Diff:
diff --git a/NEWS b/NEWS
index af7a2af..dfbc707 100644
--- a/NEWS
+++ b/NEWS
@@ -17,9 +17,9 @@ PHP NEWS
. Added a form of the list() construct where keys can be specified. (Andrea)
. Number operators taking numeric strings now emit E_NOTICEs or E_WARNINGs
when given malformed numeric strings. (Andrea)
- . (int), intval() where $base is 10 or unspecified, settype(), integer
- operators and other conversions now always respect scientific notation in
- numeric strings. (Andrea)
+ . (int), intval() where $base is 10 or unspecified, settype(), decbin(),
+ decoct(), dechex(), integer operators and other conversions now always
+ respect scientific notation in numeric strings. (Andrea)
- FTP:
. Implemented FR #55651 (Option to ignore the returned FTP PASV address)..
diff --git a/UPGRADING b/UPGRADING
index bda00da..ad3b15f 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -21,9 +21,9 @@ PHP 7.1 UPGRADE NOTES
- Core:
. 'void' can no longer be used as the name of a class, interface, or trait.
This applies to declarations, class_alias() and use statements.
- . (int), intval() where $base is 10 or unspecified, settype(), integer
- operators and other conversions now always respect scientific notation in
- numeric strings.
+ . (int), intval() where $base is 10 or unspecified, settype(), decbin(),
+ decoct(), dechex(), integer operators and other conversions now always
+ respect scientific notation in numeric strings.
(RFC: https://wiki.php.net/rfc/invalid_strings_in_arithmetic)
- JSON:
@@ -44,6 +44,13 @@ PHP 7.1 UPGRADE NOTES
. Number operators taking numeric strings now emit "A non well formed numeric
string encountered" E_NOTICEs for leading-numeric strings, and "A
non-numeric string encountered" E_WARNINGs for non-numeric strings.
+ This always applies to the +, -, *, /, **, %, << and >> operators, and
+ their assignment counterparts +=, -=, *=, /=, **=, %=, <<= and >>=.
+ For the bitwise operators |, & and ^, and their assignment counterparts
+ |=, &= and ^=, this only applies where only one operand is a string.
+ Note that this never applies to the bitwise NOT operator, ~, which does not
+ handle numeric strings, nor to the increment and decrement operators
+ ++ and --, which have a unique approach to handling numeric strings.
(RFC: https://wiki.php.net/rfc/invalid_strings_in_arithmetic)
========================================