From 391b351f121f9b3d413fc0c7e66d1833dd179415 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 1 Feb 2012 03:39:38 +0000 Subject: [PATCH] * Documentation fix * Binary mode on php://output, for consistency. --- includes/filerepo/backend/SwiftFileBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/backend/SwiftFileBackend.php b/includes/filerepo/backend/SwiftFileBackend.php index 3a3baae6f5..5ed126134c 100644 --- a/includes/filerepo/backend/SwiftFileBackend.php +++ b/includes/filerepo/backend/SwiftFileBackend.php @@ -98,7 +98,7 @@ class SwiftFileBackend extends FileBackendStore { } /** - * @see FileBackendStore::doCopyInternal() + * @see FileBackendStore::doCreateInternal() */ protected function doCreateInternal( array $params ) { $status = Status::newGood(); @@ -595,7 +595,7 @@ class SwiftFileBackend extends FileBackendStore { } try { - $output = fopen( 'php://output', 'w' ); + $output = fopen( 'php://output', 'wb' ); $obj = new CF_Object( $cont, $srcRel, false, false ); // skip HEAD request $obj->stream( $output, $this->headersFromParams( $params ) ); } catch ( InvalidResponseException $e ) { // 404? connection problem? -- 2.20.1