File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ PHP NEWS
15
15
- Hash:
16
16
. Added SHA3 fixed mode algorithms (224, 256, 384, and 512 bit). (Sara)
17
17
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
+
18
23
- PDO_Firebird:
19
24
. Fixed bug #60052 (Integer returned as a 64bit integer on X86_64). (Mariuz)
20
25
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ PHP 7.1 UPGRADE NOTES
22
22
. 'void' can no longer be used as the name of a class, interface, or trait.
23
23
This applies to declarations, class_alias() and use statements.
24
24
25
+ - JSON:
26
+ . When calling json_encode with JSON_UNESCAPED_UNICODE option, U+2028 and
27
+ U+2029 are escaped.
28
+
25
29
========================================
26
30
2. New Features
27
31
========================================
@@ -45,6 +49,9 @@ PHP 7.1 UPGRADE NOTES
45
49
- The first $varname argument for getenv() is no longer mandatory, the
46
50
current environment variables will be returned as an associative array
47
51
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.
48
55
- long2ip() accepts integer as parameter now
49
56
- pg_last_notice() accepts optional long parameter to specify operation.
50
57
PGSQL_NOTICE_LAST - Get last notice (Default)
@@ -79,6 +86,9 @@ PHP 7.1 UPGRADE NOTES
79
86
10. New Global Constants
80
87
========================================
81
88
89
+ - JSON:
90
+ . JSON_UNESCAPED_LINE_TERMINATORS
91
+
82
92
- Pgsql:
83
93
PGSQL_NOTICE_LAST
84
94
PGSQL_NOTICE_ALL
You can’t perform that action at this time.
0 commit comments