From: Aaron Schulz Date: Mon, 3 Feb 2014 20:31:07 +0000 (-0800) Subject: Use "rb" instead of "rb+" for Swift store operation handles X-Git-Tag: 1.31.0-rc.0~17035 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=da802de2f24858a6d54629b01a69c562f3d0abf5;p=lhc%2Fweb%2Fwiklou.git Use "rb" instead of "rb+" for Swift store operation handles bug: 60318 Change-Id: I411b2505287d4e4addff3231f9374775353b347b --- diff --git a/includes/filebackend/SwiftFileBackend.php b/includes/filebackend/SwiftFileBackend.php index d6bbfbe3be..f3b96644b5 100644 --- a/includes/filebackend/SwiftFileBackend.php +++ b/includes/filebackend/SwiftFileBackend.php @@ -275,7 +275,7 @@ class SwiftFileBackend extends FileBackendStore { $sha1Hash = wfBaseConvert( $sha1Hash, 16, 36, 31 ); $contentType = $this->getContentType( $params['dst'], null, $params['src'] ); - $handle = fopen( $params['src'], 'rb+' ); + $handle = fopen( $params['src'], 'rb' ); if ( $handle === false ) { // source doesn't exist? $status->fatal( 'backend-fail-store', $params['src'], $params['dst'] );