We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbe5ee commit e6739fdCopy full SHA for e6739fd
front/css.php
@@ -47,10 +47,11 @@
47
include_once GLPI_ROOT . "/inc/db.function.php";
48
include_once GLPI_ROOT . '/inc/config.php';
49
50
-if (Toolbox::getMemoryLimit() < (128 * 1024 * 1024)) {
51
- // Main CSS compilation requires about 90MB of memory.
52
- // Increase it a bit to ensure it will not reach memory limit.
53
- ini_set('memory_limit', '128M');
+// Main CSS compilation requires about 140MB of memory on PHP 7.4 (110MB on PHP 8.2).
+// Ensure to have enough memory to not reach memory limit.
+$max_memory = 192;
+if (Toolbox::getMemoryLimit() < ($max_memory * 1024 * 1024)) {
54
+ ini_set('memory_limit', sprintf('%dM', $max_memory));
55
}
56
57
// Ensure warnings will not break CSS output.
0 commit comments