This commit is contained in:
Fabien Potencier 2012-07-09 17:06:57 +02:00
parent 5608c0c3ee
commit 8d77d999a1

View File

@ -62,9 +62,10 @@ class SplFileInfo extends \SplFileInfo
*/
public function getContents()
{
$file = new \SplFileObject($this->getRealpath(), "rb");
$file = new \SplFileObject($this->getRealpath(), 'rb');
ob_start();
$file->fpassthru();
return ob_get_clean();
}
}