Repository navigation
Default the failure limit to 1 as zero is an invalid value - #3
Conversation
The default of zero throws an invalid argument error despite the Memcached docs indicating that this should be a valid value. libmemcached requires `MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT` to be a non-zero integer: - https://bazaar.launchpad.net/~tangent-trunk/libmemcached/1.0/view/head:/libmemcached/behavior.cc?start_revid=1194#L114 The globals initialization function default to `1` - https://github.com/php-memcached-dev/php-memcached/blob/v3.0.4/php_memcached.c#L4081)
|
Are you sure? From http://php.net/manual/en/memcached.constants.php |
|
Also, I'll grab the CI failures in the morning if that is OK … obviously not related to this. |
|
Yes, sorry should have mentioned, there's a bug in the php docs. To verify:
And you'll get:
Change the zero to 1 or more and all goes through ok. |
06f4200 to
b840ed8
Compare
Codecov Report
|
|
OK, this took a bit to track down what is going on upstream. What I see happening is that libmemcached requires But in the current stable, we have MEMC_SESSION_INI_ENTRY("server_failure_limit", "0", OnUpdateLongGEZero, server_failure_limit)Intreagued yet? I was 😄 So then looking at the globals initialization function it seems they default to Soooooo … my question now becomes, is |
|
I think |
b840ed8 to
79b37e0
Compare
Fixes: bolt/bolt#7357
The default of zero throws an invalid argument error despite the Memcached docs indicating that this should be a valid value.