I'm in the process of switching applications from PHP PECL-Memcache client to PECL-Memcached and I'm hitting a snag.
It seems that if I set an INT value from PECL-Memcached that PECL-Memcache can't read it. I see something like:
MemcachePool::get(): Failed to unserialize data
If I cast the int values to a string, get operations work with memcache. Of course, this breaks increment/decrement.
Setting INTs from memcache and reading from memcached works fine.
I'm using:
- libmemcached 1.0.14
- pecl-memcache 3.0.6
- memcached 1.4.4
- php-pecl-memcached 2.1.0
I suspect it has something to do with the flags the different libraries are setting. Any suggestions on making these compatible with each other?
Thanks!