aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/backend/TempFSFile.php
Commit message (Collapse)AuthorAgeFilesLines
* [FileBackend] Moved filerepo/backend/ up to filebackendAaron Schulz2012-08-081-109/+0
| | | | Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7
* Bug 24985 use $wgTmpDirectory when availableMark A. Hershberger2012-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We had two way to get a temporary directory: - $wgTempDirectory: more or less stable accross sessions - wfTempDir(): set through environnement variable and could potentially vary from a session to another one thanks to tempnam() This patch makes wfTempDir() to always use the global $wgTempDirectory first when it is available. Thus explicitly overriding tempnam() or any environnement variable such as TMP or TEMP. Hence, people who don't have access to a system wide directory specificed by their environnement (such as /tmp) can specify an alternative straight from the MediaWiki configuration. The patch remove references to $wgTmpDirectory and replace them with calls to wfTempDir(). Make wfTempDir() use $wgTmpDirectory first. The default setting of $wgTmpDirectory was removed in favor of having it initialized through Setup.php by calling wfTempDir. Note: this may also address Bug 36475 - Generating thumbnails does not work when there is no access to /tmp Change-Id: Ifdc79e9c5d95f978025b237a5eeb95fd75092f46
* Added missing GPLv2 headers in some places.Alexandre Emsenhuber2012-05-071-0/+17
| | | | | | Also made file/class documentation more consistent. Change-Id: Iad15427368d13a6cc11c8512b7265e8c7b8878a5
* Dummy proof TempFSFile purging when the constructor is used directly to ↵Aaron Schulz2012-02-271-1/+2
| | | | | | | avoid data loss. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112538
* Fix for r106752: let TempFSFile deletions happen when the object goes out of ↵Tim Starling2012-02-091-3/+0
| | | | | | | 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111128
* In FileBackend:Aaron Schulz2012-01-251-2/+0
| | | | | | | | | | | | * 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/109980
* * Moved FSFile classes from file/ to backend/Aaron Schulz2012-01-241-0/+96
* Improved $this->lockCount check in LockServerDaemon Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/109901