Skip to content

Commit

Permalink
Making CakePHP able to run inside a Phar file
Browse files Browse the repository at this point in the history
Using realpath() for configuration files breaks the lookup path for pahr files,
we really don't need to resolve symbolic links in this specific case.
  • Loading branch information
lorenzo committed Mar 18, 2016
1 parent 20c31cb commit ceca09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Configure/FileConfigTrait.php
Expand Up @@ -56,7 +56,7 @@ protected function _getFilePath($key, $checkExists = false)

$file .= $this->_extension;

if ($checkExists && !is_file(realpath($file))) {
if ($checkExists && !is_file($file)) {
throw new Exception(sprintf('Could not load configuration file: %s', $file));
}

Expand Down

0 comments on commit ceca09f

Please sign in to comment.