...
|
...
|
@@ -30,10 +30,9 @@ class Util_Server_Adapter_CheckServer { |
|
|
* @return bool
|
|
|
*/
|
|
|
public static function check( $host, $port = '3306', $type = 'db') {
|
|
|
if('memcache' == $type){
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
// if('memcache' == $type){
|
|
|
// return true;
|
|
|
// }
|
|
|
if( empty ($host) || empty ($port) || empty ($type) ) {
|
|
|
throw new Util_Server_Exception ('下列参数不合法: host:'.$host.' port:'.$port.' type:'.$type );
|
|
|
}
|
...
|
...
|
|