aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/config.php
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersJenkins for ownCloud2015-03-261-6/+29
|
* Revert "Updating license headers"Morris Jobke2015-02-261-29/+7
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-7/+29
|
* Merge pull request #11056 from AdamWill/9885-opcodeMorris Jobke2015-02-101-2/+5
|\ | | | | add function to invalidate one opcache file, use it if possible #9885
| * writeData(): correct variable name for config file pathAdam Williamson2014-11-061-1/+1
| | | | | | | | It changed since we wrote this patch.
| * add function to invalidate one opcache file, use it if possible #9885Adam Williamson2014-11-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #9885 appears to be triggered by ownCloud invalidating the entire PHP opcache. Testing indicates it can be avoided by only invalidating the single file that was written from the opcache, instead of clearing the whole thing. In general it is more efficient to invalidate only the single file that was changed, rather than the whole cache. This adds a deleteFromOpcodeCache() function which invalidates a single file from the opcache if possible, returning true if the underlying function returns true (which may mean 'success', or 'file does not exist', or 'file exists but is not in opcache', all of which are OK to treat as good for our purposes). It also changes writeData() in config.php to try using deleteFromOpcodeCache() and only fall back on clearOpcodeCache() if that fails.
* | Use `file_exists` to verify that config file existsLukas Reschke2015-01-271-1/+3
| | | | | | | | | | | | | | | | There might be the case that `fopen($file, 'r')` returns false and thus ownCloud might believe that the config file is empty and thus potentially leading to an overwrite of the config file. This changeset introduces `file_exists` again which was used in ownCloud 5 where no such problems where reported and should not be affected by such problems. Ref https://github.com/owncloud/core/issues/12785#issuecomment-71548720
* | Add a method to set/unset multiple config values in one callJoas Schilling2015-01-231-22/+67
| | | | | | | | | | This reduces the number of file writes we do for config.php and therefor hopefully helps lowering the chances for empty config.php files
* | drop unused isDebugMode and setDebugMode of OC_ConfigMorris Jobke2014-12-081-18/+0
| |
* | Try to read the file only instead of trying to touchLukas Reschke2014-11-121-3/+3
|/ | | | | | The permissions are already catched properly on the installation so we just have to check whether the file is readable to prevent fatal errors from happening. Fixes https://github.com/owncloud/core/issues/12135
* First check whether it is the default config before touchignLukas Reschke2014-11-031-1/+1
| | | | Potentially fixes https://github.com/owncloud/core/issues/11678
* Add flock to configLukas Reschke2014-09-301-53/+81
| | | | | | | | | | | | | | | | | | This adds a file lock to the config in hope that this prevents race conditions as reported in https://github.com/owncloud/core/issues/11070 Testplan: - [ ] Delete config.php and make it read-only => Error is thrown that it is not writeable - [ ] Installation still works - [ ] Changing config settings works (i.e. using the SMTP config switches in the administration menu) - [ ] Your PC didn't blow up - [ ] Installing the news app and the "Disable AppCode checker" app did not destroy your installation Only skip the main config Otherwise read only additional configs might not be processed Test on tmpdir
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-6/+6
| | | | * test case added to avoid adding them later
* Fix Scrutinizer errorsRobin McCorkell2014-05-131-3/+3
|
* Fix @return array PHPDocs, in /libRobin McCorkell2014-05-131-1/+1
|
* Fix admin-dir_permissions redirection when cannot write warningVolkan Gezer2014-04-021-1/+1
| | | | is shown.
* Fix some more docstringskondou2014-03-031-1/+1
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-2/+2
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* $default of OC_Config::[gs]etValue can have more then string as typeBart Visscher2014-02-121-2/+2
|
* Load a separate config (if present) when running unit testsRobin Appelman2014-01-171-1/+1
|
* use OC_Helper::linkToDocs() in lib/private/config.phpThomas Müller2013-10-211-1/+1
|
* introduce link_to_docs() and migrate linksThomas Müller2013-10-211-1/+1
|
* OC_Defaults is only used in error reportingBart Visscher2013-10-041-1/+1
|
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-301-0/+186
Conflicts: lib/private/vcategories.php