File tree 2 files changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/Framework/Session
lib/internal/Magento/Framework/Session
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ public function testConstructor(string $saveMethod): void
326
326
$ this ->assertArrayHasKey ('session.use_only_cookies ' , self ::$ isIniSetInvoked );
327
327
$ this ->assertEquals ('1 ' , self ::$ isIniSetInvoked ['session.use_only_cookies ' ]);
328
328
foreach ($ sessionConfig ->getOptions () as $ option => $ value ) {
329
- if ($ option == 'session.save_handler ' && $ value == ' user ' ) {
329
+ if ($ option === 'session.save_handler ' && ! $ value === ' memcached ' ) {
330
330
$ this ->assertArrayNotHasKey ('session.save_handler ' , self ::$ isIniSetInvoked );
331
331
} else {
332
332
$ this ->assertArrayHasKey ($ option , self ::$ isIniSetInvoked );
Original file line number Diff line number Diff line change @@ -619,9 +619,9 @@ private function initIniOptions()
619
619
}
620
620
621
621
foreach ($ this ->sessionConfig ->getOptions () as $ option => $ value ) {
622
- // It is now explicitly forbidden to set the module name to "user".
623
- // Formerly, this has been silently ignored .
624
- if ($ option === 'session.save_handler ' && $ value === 'user ' ) {
622
+ // Since PHP 7.2 it is explicitly forbidden to set the module name to "user".
623
+ // Need to skip all handlers except memcached. Redis and Db have implements SessionHandlerInterface .
624
+ if ($ option === 'session.save_handler ' && ! $ value === 'memcached ' ) {
625
625
continue ;
626
626
} else {
627
627
$ result = ini_set ($ option , $ value );
You can’t perform that action at this time.
0 commit comments