Skip to content

Commit

Permalink
[Finder] Fix SplFileInfo::getContents isn't working with ssh2 protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
alquerci committed Jun 10, 2013
1 parent f478812 commit 849f3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Finder/SplFileInfo.php
Expand Up @@ -65,7 +65,7 @@ public function getRelativePathname()
public function getContents()
{
$level = error_reporting(0);
$content = file_get_contents($this->getRealpath());
$content = file_get_contents($this->getPathname());
error_reporting($level);
if (false === $content) {
$error = error_get_last();
Expand Down

0 comments on commit 849f3ed

Please sign in to comment.