PECL memcache extension
Brian Moon
brianm at dealnews.com
Fri Mar 10 21:55:26 UTC 2006
Don MacAskill wrote:
>
> Hi Mikael,
>
> I'm getting a segfault when a server fails and I try to set status.
> Example code:
>
> $memCache = new Memcache();
>
> $memCache->addServer("192.168.0.1", "10000", 1, 1, 1, 15, true,
> 'memcacheFailCallback');
> $memCache->add("test", "value");
>
> function memcacheFailCallback($Host, $Port) {
> global $memCache;
> $memCache->setServerParams($Host, $Port, 1, -1, false,
> 'memcacheFailCallback');
> }
I don't know exactly how that call back works, but it looks like that if
$memCache->setServerParams fails, you could have an endless recursion.
I could be wrong.
Brian.
More information about the memcached
mailing list