Skip to content

Commit 6ca2390

Browse files
committed
Compare paths after realpath() has been applied to both
1 parent 995c3c7 commit 6ca2390

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ protected function initializeContainer()
539539
touch($oldContainerDir.'.legacy');
540540
}
541541

542+
$buildDir = $this->container->getParameter('kernel.build_dir');
542543
$cacheDir = $this->container->getParameter('kernel.cache_dir');
543544
$preload = $this instanceof WarmableInterface ? (array) $this->warmUp($cacheDir, $buildDir) : [];
544545

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public function testWarmup()
563563
$kernel->boot();
564564

565565
$this->assertTrue($kernel->warmedUp);
566-
$this->assertSame($kernel->getBuildDir(), $kernel->warmedUpBuildDir);
566+
$this->assertSame(realpath($kernel->getBuildDir()), $kernel->warmedUpBuildDir);
567567
}
568568

569569
public function testServicesResetter()

0 commit comments

Comments
 (0)