소스 검색

Ensure that commands are registered in server profiles using lowercase aliases.

Daniele Alessandri 14 년 전
부모
커밋
68dba4cb12
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Predis/Profiles/ServerProfile.php

+ 1 - 1
lib/Predis/Profiles/ServerProfile.php

@@ -99,7 +99,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport {
         if (!$commandReflection->isSubclassOf('\Predis\Commands\ICommand')) {
             throw new ClientException("Cannot register '$command' as it is not a valid Redis command");
         }
-        $this->_registeredCommands[$alias] = $command;
+        $this->_registeredCommands[strtolower($alias)] = $command;
     }
 
     public function setProcessor(ICommandProcessor $processor) {