Commit graph

3 commits

Author SHA1 Message Date
Tim Starling
f1052ff528 Fix for r106752: let TempFSFile deletions happen when the object goes out of scope, as you would expect with this RAII pattern, rather than leaving it until shutdown. PHP has lots of bugs in its shutdown process so doing the file delete at scope destruction means it's more likely to happen. 2012-02-09 23:56:48 +00:00
Aaron Schulz
d1b159ef63 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.
2012-01-25 01:57:28 +00:00
Aaron Schulz
0fc544635d * Moved FSFile classes from file/ to backend/
* Improved $this->lockCount check in LockServerDaemon
2012-01-24 02:46:21 +00:00
Renamed from includes/filerepo/file/TempFSFile.php (Browse further)