ソースを参照

Fix for PHP 8 and disable_functions

Visman 3 年 前
コミット
3ad83f7a70

+ 3 - 1
app/Models/Pages/Admin/Install.php

@@ -626,7 +626,9 @@ class Install extends Admin
      */
     protected function installEnd(Validator $v): Page
     {
-        @\set_time_limit(0);
+        if (\function_exists('\\set_time_limit')) {
+            \set_time_limit(0);
+        }
 
         if (true !== $this->c->Cache->clear()) {
             throw new RuntimeException('Unable to clear cache');

+ 3 - 1
app/Models/Pages/Admin/Maintenance.php

@@ -215,7 +215,9 @@ class Maintenance extends Admin
             return $this->view([], 'GET');
         }
 
-        @\set_time_limit(0);
+        if (\function_exists('\\set_time_limit')) {
+            \set_time_limit(0);
+        }
 
         if (
             'POST' === $method