Zend Framework

Zend_Cache_Backend_Memcached::addServer throws exception with older php memcache extensions

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.2, 1.7.3, 1.7.4, 1.7.5
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Cache
  • Labels:
    None

Description

In this issue: http://framework.zend.com/issues/browse/ZF-5260 functionality for memcache weight, timeout, retry_interval and status were added.
Now we are running memcache on a Debian 4.0 with PHP memcache extension 2.0.1. In this version the extension only allows 6 parameters and throws an ErrorException if you use more.
As you see, the affected field is the 'status' field in the addServer function. As I did not see how to get the version of the php extension, i created the following patch which is working fine for me. It also should not affect newer versions of the extension, because the default setting in the php extension is true, just like Zend_Cache_Backend_Memcached does.

Patch: http://www.vivid-planet.com/files/Zend_Cache_Backend_Memcached.php.patch.txt

Activity

Hide
Fabien MARTY added a comment -

I just commited a "compatibility" option into SVN trunk to deal with that kind of problems

For the moment, this option controls only the status parameter like you describe it here.

Many thanks

Show
Fabien MARTY added a comment - I just commited a "compatibility" option into SVN trunk to deal with that kind of problems For the moment, this option controls only the status parameter like you describe it here. Many thanks

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: