From eb6cbef4e7fada13cea26972a0e270d59c044652 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Sun, 22 Dec 2013 16:33:14 +0100 Subject: [PATCH] Remove erroneous duplication of INFO in Redis profiles. This oversight didn't end up in a blatant bug only because the correct handler definition for INFO replaced the old class in the profile. Backported from 5065541 (master). --- lib/Predis/Profile/ServerVersion26.php | 3 +-- lib/Predis/Profile/ServerVersion28.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Predis/Profile/ServerVersion26.php b/lib/Predis/Profile/ServerVersion26.php index 9f8b60dc..875f4095 100644 --- a/lib/Predis/Profile/ServerVersion26.php +++ b/lib/Predis/Profile/ServerVersion26.php @@ -111,7 +111,7 @@ class ServerVersion26 extends ServerProfile 'quit' => 'Predis\Command\ConnectionQuit', /* remote server control commands */ - 'info' => 'Predis\Command\ServerInfo', + 'info' => 'Predis\Command\ServerInfoV26x', 'slaveof' => 'Predis\Command\ServerSlaveOf', 'monitor' => 'Predis\Command\ServerMonitor', 'dbsize' => 'Predis\Command\ServerDatabaseSize', @@ -227,7 +227,6 @@ class ServerVersion26 extends ServerProfile 'script' => 'Predis\Command\ServerScript', /* remote server control commands */ - 'info' => 'Predis\Command\ServerInfoV26x', 'time' => 'Predis\Command\ServerTime', ); } diff --git a/lib/Predis/Profile/ServerVersion28.php b/lib/Predis/Profile/ServerVersion28.php index ca2e2e09..df4598bb 100644 --- a/lib/Predis/Profile/ServerVersion28.php +++ b/lib/Predis/Profile/ServerVersion28.php @@ -111,7 +111,7 @@ class ServerVersion28 extends ServerProfile 'quit' => 'Predis\Command\ConnectionQuit', /* remote server control commands */ - 'info' => 'Predis\Command\ServerInfo', + 'info' => 'Predis\Command\ServerInfoV26x', 'slaveof' => 'Predis\Command\ServerSlaveOf', 'monitor' => 'Predis\Command\ServerMonitor', 'dbsize' => 'Predis\Command\ServerDatabaseSize', @@ -227,7 +227,6 @@ class ServerVersion28 extends ServerProfile 'script' => 'Predis\Command\ServerScript', /* remote server control commands */ - 'info' => 'Predis\Command\ServerInfoV26x', 'time' => 'Predis\Command\ServerTime', /* ---------------- Redis 2.8 ---------------- */