Skip to content

Commit a45def1

Browse files
Merge branch '4.2' into 4.3
* 4.2: [HttpFoundation] Throw exception when the \"session\" extension is not loaded 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 6707d80 + 9d9e647 commit a45def1

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
@@ -225,6 +225,10 @@ public function load(array $configs, ContainerBuilder $container)
225225
}
226226

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

0 commit comments

Comments
 (0)