Skip to content

Commit

Permalink
Update Worker.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jul 27, 2023
1 parent 54aaf7f commit 5ccd9d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Worker
*
* @var string
*/
const VERSION = '4.1.11';
const VERSION = '4.1.12';

/**
* Status starting.
Expand Down Expand Up @@ -1060,7 +1060,10 @@ protected static function formatStatusData($statistics_file)
}
$status_str = '';
$current_total_request = array();
$worker_info = \unserialize($info[0]);
$workerInfo = [];
try {
$workerInfo = unserialize($info[0], ['allowed_classes' => false]);
} catch (Throwable $exception) {}
\ksort($worker_info, SORT_NUMERIC);
unset($info[0]);
$data_waiting_sort = array();
Expand Down

0 comments on commit 5ccd9d4

Please sign in to comment.