2012-02-16 49 views
1

我已經下載memcache.php版本3.0.6 from there和開箱即用(與$MEMCACHE_SERVERS[] = 'localhost:11211';定義內存緩存服務器之後)我得到了以下錯誤: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 raised。由於3.0.6 was released 10 months ago,我很驚訝,錯字尚未修復,我想知道是否因爲人們大多使用其他版本。通過推斷,我想問以下問題:

問:您使用的是哪種版本的memcache.php,memcached和php-memcache?

回答