Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions library/Zend/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ public static function start($options = false)
*/
protected static function _checkId($id)
{
//In PHP7.1 the session.hash_bits_per_character is deprecated. So this check don't make sense anymore.
// check it out https://wiki.php.net/rfc/session-id-without-hashing
if (version_compare(phpversion(), '7.1.0', '>')) {
return true;
}
$saveHandler = ini_get('session.save_handler');
if ($saveHandler == 'cluster') { // Zend Server SC, validate only after last dash
$dashPos = strrpos($id, '-');
Expand Down