moshaorui 5 ヶ月 前
コミット
430e777f34
1 ファイル変更5 行追加0 行削除
  1. 5 0
      app/Distributor/Controllers/SitePagesController.php

+ 5 - 0
app/Distributor/Controllers/SitePagesController.php

@@ -35,6 +35,11 @@ class SitePagesController extends AdminDistController
      */
     protected function grid()
     {
+        // 检查是否支持 pcntl 扩展
+        if (!function_exists('pcntl_fork')) {
+            die('pcntl_fork() is not available on this system.');
+        }
+        exit;
         return Grid::make(SitePages::with(['pagesTag']), function (Grid $grid) {
             $grid->column('id')->sortable();
             $grid->column('title');