com php-src: Fix session upgrade documentation: UPGRADING
| From: | Yasuo Ohgaki | Date: | Sun, 04 Dec 2016 06:33:29 +0000 |
| Subject: | com php-src: Fix session upgrade documentation: UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96179@lists.php.net to get a copy of this message | ||
Commit: e15733f0b8d1c1b75d91320e5b8afdb07e7421bb
Author: Tobias Schultze <webmaster@tubo-world.de> Sun, 4 Dec 2016 07:33:29 +0100
Committer: GitHub <noreply@github.com> Sun, 4 Dec 2016 07:33:29 +0100
Parents: ca871aaba6da64866a67d35ec1fb34066cf92e5b
Branches: PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e15733f0b8d1c1b75d91320e5b8afdb07e7421bb
Log:
Fix session upgrade documentation
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index 5d9864e..cbf1e8a 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -112,26 +112,26 @@ PHP 7.1 UPGRADE NOTES
on save handler you are using.
. Following INIs are removed
. session.hash_function
- . session.hash_bits_per_charactor
+ . session.hash_bits_per_character
. session.entropy_file
. session.entropy_length
. New INIs and defaults
. session.sid_length (Number of session ID characters - 22 to 256.
- (php.ini-* default: 26 Compiled default: 32)
- . session.sid_bits_per_character (Bits used per character. 4 to 6.
+ php.ini-* default: 26 Compiled default: 32)
+ . session.sid_bits_per_character (Bits used per character - 4 to 6..
php.ini-* default: 5 Compiled default: 4)
- Length of old session ID string is determined as follows
+ . Length of old session ID string is determined as follows
. Used hash function's bits.
. session.hash_function=0 - MD5 128 bits (This was default)
- . session.hash_function=1 - SHA1 192 bits
+ . session.hash_function=1 - SHA1 160 bits
. Bits per character. (4, 5 or 6 bits per character)
. Examples
MD5 and 4 bits = 32 chars, ceil(128/4)=32
MD5 and 5 bits = 26 chars, ceil(128/5)=26
MD5 and 6 bits = 22 chars, ceil(128/6)=22
- SHA1 and 4 bits = 48 chars, ceil(192/4)=48
- SHA2 and 5 bits = 39 chars, ceil(192/5)=39
- SHA1 and 6 bits = 32 chars, ceil(192/6)=32
+ SHA1 and 4 bits = 40 chars, ceil(160/4)=40
+ SHA1 and 5 bits = 32 chars, ceil(160/5)=32
+ SHA1 and 6 bits = 27 chars, ceil(160/6)=27
and so on.
. session_start() returns FALSE and no longer initializes $_SESSION when
it failed to start session.