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:
commit
839047bafa
|
@ -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();
|
||||
|
|
Reference in New Issue