Skip to content

Commit

Permalink
Fixes fatal error on Windows due to readline_callback_handler_install…
Browse files Browse the repository at this point in the history
… method not present, #269
  • Loading branch information
AltamashShaikh committed Oct 21, 2024
1 parent 45214e2 commit 2d234a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

5.1.0 - 2021-10-22
- Fixes fatal error on Windows due to readline_callback_handler_install method not present

5.1.0 - 2021-10-21
- Increased number of queue tracking workers to 4096
- Enhance queue monitor and process commands
Expand Down
6 changes: 4 additions & 2 deletions Commands/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ protected function doExecute(): int
$qPerPAge = min(max($this->getPerPageFromArg(), 1), $qCount);
$qPageCount = ceil($qCount / $qPerPAge);

readline_callback_handler_install('', function () {
});
if (function_exists('readline_callback_handler_install')) {
readline_callback_handler_install('', function () {
});
}
stream_set_blocking(STDIN, false);

$output->writeln(str_repeat("-", 30));
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "QueuedTracking",
"version": "5.1.0",
"version": "5.1.1",
"description": "Scale your large traffic Matomo service by queuing tracking requests in Redis or MySQL for better performance and reliability when experiencing peaks.",
"theme": false,
"keywords": ["tracker", "tracking", "queue", "redis"],
Expand Down

0 comments on commit 2d234a5

Please sign in to comment.