In FileBackend:
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Jan 2012 01:57:28 +0000 (01:57 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Jan 2012 01:57:28 +0000 (01:57 +0000)
commitd1b159ef63539b035d6ff98d6fbce5ba9d66ebbe
treeb2e39a52cd68c3f93458e5ee1c5e137772d2b9e2
parent957c3b5b683bcb27c5ae1bfcfec3985530698210
In FileBackend:
* Use 'b' param in some fopen() calls as needed for Windows and newline handling.
* Removed some useless padding code in FileBackend::getContainerShard(). Initialized $m to make IDE happy.
* Updated some code comments.
In SwiftFileBackend:
* Manually set the ETag when using php-cloudfiles for creating files to avoid https://github.com/rackspace/php-cloudfiles/issues/59.
* Manually set the content type based on how StreamFile::getType(). This makes it safe to read files directly out of the proxy to end-users. The streamFile() backend functions already uses a similar content-type check.
includes/StreamFile.php
includes/filerepo/backend/FSFile.php
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/FileOp.php
includes/filerepo/backend/SwiftFileBackend.php
includes/filerepo/backend/TempFSFile.php
tests/phpunit/includes/filerepo/FileBackendTest.php