Skip to content

Commit 22b6f0f

Browse files
committed
Update CommandTrait.php
1 parent 19a45ee commit 22b6f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dashboards/Memcached/Compatibility/CommandTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function command(string $command): ?array {
4545
$part = '';
4646
$data = [];
4747

48-
while (true) {
48+
while (!feof($fp)) {
4949
$part .= fgets($fp, 1024);
5050
$lines = explode("\n", $part);
5151
$part = array_pop($lines);

0 commit comments

Comments
 (0)