2012-02-16 4 views
1

私はバージョンmemcache.phpダウンロードした3.0.6 from thereと私は次のエラーましボックスのうち($MEMCACHE_SERVERS[] = 'localhost:11211';とmemcacheのサーバーを定義した後):typo in memcache.php 3.0.6、使用するmemcacheのバージョンは?

Notice: Use of undefined constant values - assumed 'values' in memcache_3.0.6.php on line 61 

関連するコード・ブロック:

function get_host_port_from_server($server){ 
      $values = explode(':', $server); 
      if (($values[0] == 'unix') && (!is_numeric($values[1]))) { 
        return array($server, 0); 
      } 
     else { 
        return values; // lines 61 -> $ missing 
      } 
    } 

を私が実現したことを訂正した後the bug had already been raised3.0.6 was released 10 months ago以来、私はまだタイポが修正されていないことに驚いています。そして、人々が主に他のバージョンを使用しているからです。私は次の質問をしたいと思います:

Q:どのバージョンのmemcache.php、memcached、およびphp-memcacheを使いますか?

答えて

関連する問題