[HttpFoundation] Fix bad merge in NativeSessionStorage
This commit is contained in:
parent
7be944a787
commit
58d12e88b4
@ -108,7 +108,11 @@ class NativeSessionStorage implements SessionStorageInterface
|
||||
'use_cookies' => 1,
|
||||
);
|
||||
|
||||
session_register_shutdown();
|
||||
if (\PHP_VERSION_ID >= 50400) {
|
||||
session_register_shutdown();
|
||||
} else {
|
||||
register_shutdown_function('session_write_close');
|
||||
}
|
||||
|
||||
$this->setMetadataBag($metaBag);
|
||||
$this->setOptions($options);
|
||||
|
Reference in New Issue
Block a user