Bug #75047 [NEW]: session_regenerate_id fails with redis
| From: | bartosz at kibilko dot pl | Date: | Tue, 08 Aug 2017 10:05:37 +0000 |
| Subject: | Bug #75047 [NEW]: session_regenerate_id fails with redis | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-210554@lists.php.net to get a copy of this message | ||
From: bartosz at kibilko dot pl
Operating system: Ubuntu / Docker Container
PHP version: 7.0.22
Package: Unknown/Other Function
Bug Type: Bug
Bug description:session_regenerate_id fails with redis
Description:
------------
PHP 7.0.21
phpredis 3.1.2
redis 3.0.7 / 3.2.4
Magento 1.14.2.4
Context:
There are some problems with session_regenerate_id function when redis
is used as session adapter. Currently, I'm trying to login in Magento
and session_id is stored in redis and in cookies but nothing happens -
user is not logged in. When I remove the cookie, PHP throws this:
Recoverable Error: session_regenerate_id(): Failed to create(read)
session ID: redis (path: tcp://redis:6379/?database=2).
It can be also related to phpredis, because version 3.1.3 has another
bug :) - https://github.com/phpredis/phpredis/issues/1211
Expected result:
----------------
No errors, user logged in
Actual result:
--------------
Recoverable Error: session_regenerate_id(): Failed to create(read)
session ID: redis (path: tcp://redis:6379/?database=2) in
/var/www/mage/magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
on line 141
#0 [internal function]: mageCoreErrorHandler(4096, 'session_regener...',
'/var/www/magent...', 141, Array)
#1
/var/www/mage/magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(141):
session_regenerate_id(false)
#2
/var/www/mage/magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php(222):
Mage_Core_Model_Session_Abstract_Varien->start('frontend')
#3
/var/www/mage/magento/app/code/core/Mage/Core/Model/Session/Abstract.php(84):
Mage_Core_Model_Session_Abstract_Varien->init('core', 'frontend')
#4 /var/www/mage/magento/app/code/core/Mage/Core/Model/Session.php(42):
Mage_Core_Model_Session_Abstract->init('core', 'frontend')
#5 /var/www/mage/magento/app/code/core/Mage/Core/Model/Config.php(1354):
Mage_Core_Model_Session->__construct(Array)
#6 /var/www/mage/magento/app/Mage.php(471):
Mage_Core_Model_Config->getModelInstance('core/session', Array)
#7 .........
--
Edit bug report at https://bugs.php.net/bug.php?id=75047&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75047&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75047&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75047&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75047&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75047&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75047&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75047&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75047&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75047&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75047&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75047&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75047&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75047&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75047&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75047&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75047&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75047&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75047&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75047&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75047&r=mysqlcfg