Skip to content

Commit 583ecd6

Browse files
authored
Merge pull request #234 from TysonAndre/document-sess_binary_protocol-php7
Document memcached.sess_binary_protocol
2 parents cc06f85 + 045ab84 commit 583ecd6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

memcached.ini

+5-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ memcached.sess_remove_failed_servers = Off
6363
; which could have old data or no data at all
6464
memcached.sess_number_of_replicas = 0
6565

66-
; memcached session binary mode
67-
; libmemcached replicas only work if binary mode is enabled
68-
memcached.sess_binary = Off
66+
; Use the memcached binary protocol for memcached sessions (Instead of the text protocol)
67+
; libmemcached replicas work only if binary mode is enabled.
68+
; However, certain proxies (such as twemproxy) will work only if the binary protocol is disabled.
69+
; Default is On. In older versions of php-memcached, this setting was Off and was called memcached.sess_binary.
70+
memcached.sess_binary_protocol = On
6971

7072
; memcached session replica read randomize
7173
memcached.sess_randomize_replica_read = Off

php_memcached.c

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
/* TODO
2020
* - set LIBKETAMA_COMPATIBLE as the default?
2121
* - fix unserialize(serialize($memc))
22-
* - ability to set binary protocol for sessions
2322
*/
2423

2524
#include "php_memcached.h"

0 commit comments

Comments
 (0)