@@ -52,11 +52,16 @@ PHP 7.2 UPGRADE NOTES
52
52
. The hash_hmac(), hash_hmac_file(), hash_pbkdf2() and hash_init() (with
53
53
HASH_HMAC) functions no longer accept non-cryptographic hashes.
54
54
55
- - JSON
55
+ - JSON:
56
56
. The json_decode() option JSON_OBJECT_AS_ARRAY is used if the second
57
57
parameter (assoc) is null. Previously JSON_OBJECT_AS_ARRAY was always
58
58
ignored.
59
59
60
+ - SAPI:
61
+ . Starting with 7.2.34, incoming cookie names are not url-decoded. This was never
62
+ required by the standard, outgoing cookie names aren't encoded and this leads
63
+ to security issues (CVE-2020-7070).
64
+
60
65
- Session:
61
66
. Removed register_globals related code and "!" can be used as $_SESSION key name.
62
67
. Session is made to manage session status correctly and prevents invalid operations.
@@ -69,7 +74,7 @@ PHP 7.2 UPGRADE NOTES
69
74
session_unset(), session_write_close()/session_commit(), session_abort(),
70
75
session_reset()
71
76
. Functions prohibit invalid operations with regard to session status and
72
- HTTP header status, returns correct bool return value.
77
+ HTTP header status, return correct bool return value.
73
78
session_start(), session_set_cookie_params(), session_name(), session_module_name(),
74
79
session_set_save_handler(), session_regenerate_id(), session_cache_limiter(),
75
80
session_cache_expire(), session_unset(), session_destroy(),
@@ -88,7 +93,7 @@ PHP 7.2 UPGRADE NOTES
88
93
session_start()
89
94
. When headers are already sent and try to set new INI values, session_name(),
90
95
session_module_name(), session_save_path(), session_cache_limiter() and
91
- session_cache_expire() are no longer works . Older PHPs accepts new values even
96
+ session_cache_expire() no longer work . Older PHPs accept new values even
92
97
if new values will not be effective.
93
98
This new corrected behavior may affect command line mode CLI scripts that manage
94
99
sessions. Use output buffer just like web applications to resolve problems on
0 commit comments