Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable name error #949

Merged
merged 1 commit into from Jul 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Worker.php
Expand Up @@ -1064,7 +1064,7 @@ protected static function formatStatusData($statistics_file)
try {
$workerInfo = unserialize($info[0], ['allowed_classes' => false]);
} catch (Throwable $exception) {}
\ksort($worker_info, SORT_NUMERIC);
\ksort($workerInfo, SORT_NUMERIC);
unset($info[0]);
$data_waiting_sort = array();
$read_process_status = false;
Expand Down Expand Up @@ -1099,7 +1099,7 @@ protected static function formatStatusData($statistics_file)
}
}
}
foreach($worker_info as $pid => $info) {
foreach($workerInfo as $pid => $info) {
if (!isset($data_waiting_sort[$pid])) {
$status_str .= "$pid\t" . \str_pad('N/A', 7) . " "
. \str_pad($info['listen'], static::$_maxSocketNameLength) . " "
Expand Down