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-06-05 20:51:24 +0200
commit78ff8e233fcfaf596a85ddc3bbacda7aca537fa1 (patch)
tree65b2e8202646a6a954c66b74f2eb33e9015ec335
parent2eed6d3a890958777faa93cf7e1cdf8f77762a88 (diff)
downloadnextcloud-server-feat/use-php84-lazy-objects.tar.gz
nextcloud-server-feat/use-php84-lazy-objects.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 9fa6707654a..55856889489 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -619,7 +619,7 @@ class OC {
$loaderEnd = microtime(true);
// 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);