aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-05-16 17:07:53 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-05-20 11:29:15 +0200
commitd06cda4ec0e932cd3e6939a690f988fca95fbecf (patch)
treef0ae390cdf2f2eb29efc39d5240a69ee0881b727
parent6610af28ff267cdf14eb1b498355467a8afc27ab (diff)
downloadnextcloud-server-d06cda4ec0e932cd3e6939a690f988fca95fbecf.tar.gz
nextcloud-server-d06cda4ec0e932cd3e6939a690f988fca95fbecf.zip
fix: Switch lazy object to enabled by default on PHP 8.4feat/use-php84-lazy-objects
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--config/config.sample.php4
-rw-r--r--lib/base.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index da87edff575..1578398c72e 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -2748,7 +2748,7 @@ $CONFIG = [
* Enable lazy objects feature from PHP 8.4 to be used in the Dependency Injection.
* Should improve performances by avoiding buiding unused objects.
*
- * Defaults to false.
+ * Defaults to true.
*/
-'enable_lazy_objects' => false,
+'enable_lazy_objects' => true,
];
diff --git a/lib/base.php b/lib/base.php
index bcca62b4ac0..1ccaf80d1a8 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -633,7 +633,7 @@ class OC {
}
// Enable lazy loading if activated
- \OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects');
+ \OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects', true);
// setup the basic server
self::$server = new \OC\Server(\OC::$WEBROOT, self::$config);