Skip to content

Commit 6c9fe03

Browse files
Merge branch '4.3' into 4.4
* 4.3: [HttpFoundation] Throw exception when the \"session\" extension is not loaded remove invalid test case remove invalid test cases [Serializer] Fixed PHP of DenormalizableInterface::denormalize [Cache] work aroung PHP memory leak [Finder] docblock fixes pass error code as a string Catch JsonException and rethrow in JsonEncode
2 parents 5f53db5 + a45def1 commit 6c9fe03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ public function load(array $configs, ContainerBuilder $container)
226226
}
227227

228228
if ($this->isConfigEnabled($container, $config['session'])) {
229+
if (!\extension_loaded('session')) {
230+
throw new \LogicException('PHP extension "session" is required.');
231+
}
232+
229233
$this->sessionConfigEnabled = true;
230234
$this->registerSessionConfiguration($config['session'], $container, $loader);
231235
if (!empty($config['test'])) {

0 commit comments

Comments
 (0)