Permalink
Browse files

Added MEMCACHED_BEHAVIOR_DEAD_TIMEOUT class constant 'OPT_DEAD_TIMEOU…

…T' (new in 1.0.3)
  • Loading branch information...
1 parent d9a2e8b commit 30d9031620d93c4f7f4f0c436995a16c4d54e0b2 @poison poison committed Nov 14, 2012
Showing with 5 additions and 0 deletions.
  1. +2 −0 memcached-api.php
  2. +3 −0 php_memcached.c
View
@@ -53,6 +53,8 @@ class Memcached {
const OPT_RETRY_TIMEOUT;
+ const OPT_DEAD_TIMEOUT;
+
const OPT_SND_TIMEOUT;
const OPT_RCV_TIMEOUT;
View
@@ -3805,6 +3805,9 @@ static void php_memc_register_constants(INIT_FUNC_ARGS)
REGISTER_MEMC_CLASS_CONST_LONG(OPT_SOCKET_RECV_SIZE, MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_CONNECT_TIMEOUT, MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_RETRY_TIMEOUT, MEMCACHED_BEHAVIOR_RETRY_TIMEOUT);
+#if defined(LIBMEMCACHED_VERSION_HEX) && LIBMEMCACHED_VERSION_HEX >= 0x01000003
+ REGISTER_MEMC_CLASS_CONST_LONG(OPT_DEAD_TIMEOUT, MEMCACHED_BEHAVIOR_DEAD_TIMEOUT);
+#endif
REGISTER_MEMC_CLASS_CONST_LONG(OPT_SEND_TIMEOUT, MEMCACHED_BEHAVIOR_SND_TIMEOUT);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_RECV_TIMEOUT, MEMCACHED_BEHAVIOR_RCV_TIMEOUT);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_POLL_TIMEOUT, MEMCACHED_BEHAVIOR_POLL_TIMEOUT);

0 comments on commit 30d9031

Please sign in to comment.