From a3b59e098147d9368ba3e1971408a76192c8cd99 Mon Sep 17 00:00:00 2001 From: Paulo Vitor Bettini de Paiva Lima Date: Tue, 18 Jul 2017 12:51:49 -0300 Subject: [PATCH] Making checkId compatible with PHP 7.1 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 --- library/Zend/Session.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Zend/Session.php b/library/Zend/Session.php index 682601a4c5..5b9800c706 100644 --- a/library/Zend/Session.php +++ b/library/Zend/Session.php @@ -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, '-');