Skip to content

Commit 1091cec

Browse files
committed
Update NEWS and UPGRADING for PR #1701
1 parent 104876d commit 1091cec

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ PHP NEWS
1515
- Hash:
1616
. Added SHA3 fixed mode algorithms (224, 256, 384, and 512 bit). (Sara)
1717

18+
- JSON:
19+
. Escaped U+2028 and U+2029 when JSON_UNESCAPED_UNICODE is supplied as
20+
json_encode options and added JSON_UNESCAPED_LINE_TERMINATORS to restore
21+
the previous behaviour. (Eddie Kohler)
22+
1823
- PDO_Firebird:
1924
. Fixed bug #60052 (Integer returned as a 64bit integer on X86_64). (Mariuz)
2025

UPGRADING

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ PHP 7.1 UPGRADE NOTES
2222
. 'void' can no longer be used as the name of a class, interface, or trait.
2323
This applies to declarations, class_alias() and use statements.
2424

25+
- JSON:
26+
. When calling json_encode with JSON_UNESCAPED_UNICODE option, U+2028 and
27+
U+2029 are escaped.
28+
2529
========================================
2630
2. New Features
2731
========================================
@@ -45,6 +49,9 @@ PHP 7.1 UPGRADE NOTES
4549
- The first $varname argument for getenv() is no longer mandatory, the
4650
current environment variables will be returned as an associative array
4751
when omitted.
52+
- json_encode() accepts new option JSON_UNESCAPED_LINE_TERMINATORS that
53+
disables escaping of U+2028 and U+2029 characters when
54+
JSON_UNESCAPED_UNICODE is supplied.
4855
- long2ip() accepts integer as parameter now
4956
- pg_last_notice() accepts optional long parameter to specify operation.
5057
PGSQL_NOTICE_LAST - Get last notice (Default)
@@ -79,6 +86,9 @@ PHP 7.1 UPGRADE NOTES
7986
10. New Global Constants
8087
========================================
8188

89+
- JSON:
90+
. JSON_UNESCAPED_LINE_TERMINATORS
91+
8292
- Pgsql:
8393
PGSQL_NOTICE_LAST
8494
PGSQL_NOTICE_ALL

0 commit comments

Comments
 (0)