merged branch alquerci/ticket_8219 (PR #8243)

This PR was merged into the 2.2 branch.

Discussion
----------

[Finder] Fix SplFileInfo::getContents isn't working with ssh2 protocol

| Q             | A
| -------------:| ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8219
| License       | MIT

Commits
-------

849f3ed [Finder] Fix SplFileInfo::getContents isn't working with ssh2 protocol
This commit is contained in:
Fabien Potencier 2013-06-11 22:19:40 +02:00
commit 839047bafa
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class SplFileInfo extends \SplFileInfo
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();