summaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-15 16:08:04 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-15 16:09:01 +0100
commit776f5bcd345b77b05cbb9cd3fd234f3ba40eac25 (patch)
tree1e0d671798caf178e88b54ce17d895f9d00d9cf4 /lib/private/Updater.php
parent3714a6aaf0b565808bd1ec7f8552196447402f58 (diff)
downloadnextcloud-server-776f5bcd345b77b05cbb9cd3fd234f3ba40eac25.tar.gz
nextcloud-server-776f5bcd345b77b05cbb9cd3fd234f3ba40eac25.zip
Don't disable apps on update if PHP >= 7.0.0
When PHP in a version higher than 7.0.0 is used we catch fatal exceptions in app.php and gracefully already disable the app. There is thus no need to also disable the apps on updates. This has been requested by Jan to fix because that is "the most annoying thing ever" :TM:. – I'd say we give it a try and if that causes problems in the future we can consider alternative approaches. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index e30777227cc..a66d49941cd 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -82,6 +82,12 @@ class Updater extends BasicEmitter {
$this->log = $log;
$this->config = $config;
$this->checker = $checker;
+
+ // If at least PHP 7.0.0 is used we don't need to disable apps as we catch
+ // fatal errors and exceptions and disable the app just instead.
+ if(version_compare(phpversion(), '7.0.0', '>=')) {
+ $this->skip3rdPartyAppsDisable = true;
+ }
}
/**