ZF-5887: Zend_Cache_Backend_Memcached::addServer throws exception with older php memcache extensions

Issue Type: Bug Created: 2009-02-26T01:24:05.000+0000 Last Updated: 2009-03-04T11:18:41.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Markus Hauser (markus08) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments:


In this issue: 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.



Posted by Fabien MARTY (fab) on 2009-03-04T11:18:41.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.