original_string: public function get_warnings() {
          global $CFG;
          $warnings = array();
          if (isset($CFG->session_memcached_save_path) && count($this->servers)) {
              $bits = explode(':', $CFG->session_memcached_save_path, 3);
              $host = array_shift($bits);
              $port = (count($bits)) ? array_shift($bits) : '11211';
  
              foreach ($this->servers as $server) {
                  if ((string)$server[0] === $host && (string)$server[1] === $port) {
                      $warnings[] = get_string('sessionhandlerconflict', 'cachestore_memcached', $this->my_name());
                      break;
                  }
              }
          }
          return $warnings;
      }
code: public function get_warnings() {
          global $CFG;
          $warnings = array();
          if (isset($CFG->session_memcached_save_path) && count($this->servers)) {
              $bits = explode(':', $CFG->session_memcached_save_path, 3);
              $host = array_shift($bits);
              $port = (count($bits)) ? array_shift($bits) : '11211';
  
              foreach ($this->servers as $server) {
                  if ((string)$server[0] === $host && (string)$server[1] === $port) {
                      $warnings[] = get_string('sessionhandlerconflict', 'cachestore_memcached', $this->my_name());
                      break;
                  }
              }
          }
          return $warnings;
      }
code_tokens: public function get_warnings ( ) { global $ CFG ; $ warnings = array ( ) ; if ( isset ( $ CFG -> session_memcached_save_path ) && count ( $ this -> servers ) ) { $ bits = explode ( ':' , $ CFG -> session_memcached_save_path , 3 ) ; $ host = array_shift ( $ bits ) ; $ port = ( count ( $ bits ) ) ? array_shift ( $ bits ) : '11211' ; foreach ( $ this -> servers as $ server ) { if ( ( string ) $ server [ 0 ] === $ host && ( string ) $ server [ 1 ] === $ port ) { $ warnings [ ] = get_string ( 'sessionhandlerconflict' , 'cachestore_memcached' , $ this -> my_name ( ) ) ; break ; } } } return $ warnings ; }
docstring: Used to notify of configuration conflicts.
  
  The warnings returned here will be displayed on the cache configuration screen.
  
  @return string[] Returns an array of warnings (strings)
docstring_tokens: Used to notify of configuration conflicts .