1
0
Fork 0

Fix HTTPS through Proxy errors.

pull/453/head
Beau Simensen 2012-03-14 15:40:51 -07:00
parent 71c146e2ab
commit ce08b2fc4f
1 changed files with 2 additions and 3 deletions

View File

@ -102,10 +102,9 @@ class RemoteFilesystem
$this->io->write(" Downloading: <comment>connection...</comment>", false); $this->io->write(" Downloading: <comment>connection...</comment>", false);
} }
$result = @file_get_contents($fileUrl, false, $ctx);
if (null !== $fileName) { if (null !== $fileName) {
$result = @copy($fileUrl, $fileName, $ctx); $result = @file_put_contents($fileName, $result) ? true : false;
} else {
$result = @file_get_contents($fileUrl, false, $ctx);
} }
// fix for 5.4.0 https://bugs.php.net/bug.php?id=61336 // fix for 5.4.0 https://bugs.php.net/bug.php?id=61336