Skip to content

Commit 58d12e8

Browse files
[HttpFoundation] Fix bad merge in NativeSessionStorage
1 parent 7be944a commit 58d12e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ public function __construct(array $options = array(), $handler = null, MetadataB
108108
'use_cookies' => 1,
109109
);
110110

111-
session_register_shutdown();
111+
if (\PHP_VERSION_ID >= 50400) {
112+
session_register_shutdown();
113+
} else {
114+
register_shutdown_function('session_write_close');
115+
}
112116

113117
$this->setMetadataBag($metaBag);
114118
$this->setOptions($options);

0 commit comments

Comments
 (0)