Skip to content

Commit afce03c

Browse files
committed
Fix #75
1 parent 46c3603 commit afce03c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/Dashboards/Memcached/PHPMem.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ public function getKeys(): array {
229229
throw new MemcachedException('metadump failed: '.$last);
230230
}
231231

232+
// Memcached >= 1.6.43 prefixes the dump with an OK line
233+
if ($lines !== [] && rtrim($lines[0], "\r") === 'OK') {
234+
array_shift($lines);
235+
}
236+
232237
return $lines;
233238
}
234239

0 commit comments

Comments
 (0)