From: Jakub Zelenka Date: Fri, 22 Jan 2016 19:39:16 +0000 (+0000) Subject: Update NEWS and UPGRADING for PR #1701 X-Git-Tag: php-7.2.0alpha1~620^2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1091cec28fd49a8ca5e3902266626739918b1f56;p=php Update NEWS and UPGRADING for PR #1701 --- diff --git a/NEWS b/NEWS index 808424f763..46b21438cb 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,11 @@ PHP NEWS - Hash: . Added SHA3 fixed mode algorithms (224, 256, 384, and 512 bit). (Sara) +- JSON: + . Escaped U+2028 and U+2029 when JSON_UNESCAPED_UNICODE is supplied as + json_encode options and added JSON_UNESCAPED_LINE_TERMINATORS to restore + the previous behaviour. (Eddie Kohler) + - PDO_Firebird: . Fixed bug #60052 (Integer returned as a 64bit integer on X86_64). (Mariuz) diff --git a/UPGRADING b/UPGRADING index 344c221273..8208adbae8 100644 --- a/UPGRADING +++ b/UPGRADING @@ -22,6 +22,10 @@ PHP 7.1 UPGRADE NOTES . 'void' can no longer be used as the name of a class, interface, or trait. This applies to declarations, class_alias() and use statements. +- JSON: + . When calling json_encode with JSON_UNESCAPED_UNICODE option, U+2028 and + U+2029 are escaped. + ======================================== 2. New Features ======================================== @@ -45,6 +49,9 @@ PHP 7.1 UPGRADE NOTES - The first $varname argument for getenv() is no longer mandatory, the current environment variables will be returned as an associative array when omitted. +- json_encode() accepts new option JSON_UNESCAPED_LINE_TERMINATORS that + disables escaping of U+2028 and U+2029 characters when + JSON_UNESCAPED_UNICODE is supplied. - long2ip() accepts integer as parameter now - pg_last_notice() accepts optional long parameter to specify operation. PGSQL_NOTICE_LAST - Get last notice (Default) @@ -79,6 +86,9 @@ PHP 7.1 UPGRADE NOTES 10. New Global Constants ======================================== +- JSON: + . JSON_UNESCAPED_LINE_TERMINATORS + - Pgsql: PGSQL_NOTICE_LAST PGSQL_NOTICE_ALL