diff --git a/lib/Predis/Profiles/ServerProfile.php b/lib/Predis/Profiles/ServerProfile.php index 876d13ce..33be4560 100644 --- a/lib/Predis/Profiles/ServerProfile.php +++ b/lib/Predis/Profiles/ServerProfile.php @@ -70,8 +70,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport { } public function supportsCommand($command) { - $command = strtolower($command); - return isset($this->_registeredCommands[$command]); + return isset($this->_registeredCommands[strtolower($command)]); } public function createCommand($method, $arguments = array()) {