Selaa lähdekoodia

Update Timer.php

walkor 3 vuotta sitten
vanhempi
commit
97c3d43ff0
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/Timer.php

+ 3 - 1
src/Timer.php

@@ -218,7 +218,9 @@ class Timer
     public static function delAll()
     {
         self::$_tasks = self::$_status = [];
-        \pcntl_alarm(0);
+        if (\function_exists('pcntl_alarm')) {
+            \pcntl_alarm(0);
+        }
         if (self::$_event) {
             self::$_event->deleteAllTimer();
         }