Skip to content

Commit d57303f

Browse files
committed
bug symfony#25363 [HttpKernel] Disable inlining on PHP 5 (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] Disable inlining on PHP 5 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#25334 | License | MIT | Doc PR | - Commits ------- 950fd99 [HttpKernel] Disable inlining on PHP 5
2 parents ae3d899 + 950fd99 commit d57303f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
839839
'file' => $cache->getPath(),
840840
'as_files' => true,
841841
'debug' => $this->debug,
842-
'inline_class_loader_parameter' => !$this->loadClassCache && !class_exists(ClassCollectionLoader::class, false) ? 'container.dumper.inline_class_loader' : null,
842+
'inline_class_loader_parameter' => \PHP_VERSION_ID >= 70000 && !$this->loadClassCache && !class_exists(ClassCollectionLoader::class, false) ? 'container.dumper.inline_class_loader' : null,
843843
));
844844

845845
$rootCode = array_pop($content);

0 commit comments

Comments
 (0)