@@ -89,6 +89,34 @@ PHP 7.1 UPGRADE NOTES
89
89
- OpenSSL:
90
90
. Dropped sslv2 stream.
91
91
92
+ - Session:
93
+ . Session ID is generated from CSPNG directly. As a result, Session ID length
94
+ could be any length between 22 and 256. Note: Max size of session ID depends
95
+ on save handler you are using.
96
+ . Following INIs are removed
97
+ . session.hash_function
98
+ . session.hash_bits_per_charactor
99
+ . session.entropy_file
100
+ . session.entropy_length
101
+ . New INIs and defaults
102
+ . session.sid_length (Number of session ID characters - 22 to 256.
103
+ (php.ini-* default: 26 Compitled default: 32)
104
+ . session.sid_bits_per_character (Bits used per character. 4 to 6.
105
+ php.ini-* default: 5 Compiled default: 4)
106
+ Length of old session ID string is determined as follows
107
+ . Used hash function's bits.
108
+ . session.hash_function=0 - MD5 128 bits (This was default)
109
+ . session.hash_function=1 - SHA1 192 bits
110
+ . Bits per character. (4, 5 or 6 bits per character)
111
+ . Examples
112
+ MD5 and 4 bits = 32 chars, ceil(128/4)=32
113
+ MD5 and 5 bits = 26 chars, ceil(128/5)=26
114
+ MD5 and 6 bits = 22 chars, ceil(128/6)=22
115
+ SHA1 and 4 bits = 48 chars, ceil(192/4)=48
116
+ SHA2 and 5 bits = 39 chars, ceil(192/5)=39
117
+ SHA1 and 6 bits = 32 chars, ceil(192/6)=32
118
+ and so on.
119
+
92
120
- Reflection:
93
121
. The behavior of ReflectionMethod::invoke() and ::invokeArgs() has been
94
122
aligned, what causes slightly different behavior than before for some
@@ -280,8 +308,7 @@ PHP 7.1 UPGRADE NOTES
280
308
. Custom session handlers that do not return strings for session IDs will
281
309
now throw an instance of Error instead of resulting in a fatal error
282
310
when a function is called that must generate a session ID.
283
- . An invalid setting for session.hash_function will throw an instance of
284
- Error instead of resulting in a fatal error when a session ID is created.
311
+ . Only CSPRNG is used to generate session ID.
285
312
286
313
- SimpleXML:
287
314
. Creating an unnamed or duplicate attribute will throw an instance of Error
0 commit comments