Browse files

Fixed bug #36 (Allow memcached.sess_prefix to be blank)

  • Loading branch information...
1 parent 7454211 commit 3574b28758cba0d70f27de1acffbfc09e1733f50 @iliaal iliaal committed Nov 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 php_memcached_session.c
View
2 php_memcached_session.c
@@ -142,7 +142,7 @@ PS_OPEN_FUNC(memcached)
status = memcached_server_push(memc_sess->memc_sess, servers);
memcached_server_list_free(servers);
- if (memcached_callback_set(memc_sess->memc_sess, MEMCACHED_CALLBACK_PREFIX_KEY, MEMC_G(sess_prefix)) != MEMCACHED_SUCCESS) {
+ if (MEMC_G(sess_prefix) && MEMC_G(sess_prefix)[0] != 0 && memcached_callback_set(memc_sess->memc_sess, MEMCACHED_CALLBACK_PREFIX_KEY, MEMC_G(sess_prefix)) != MEMCACHED_SUCCESS) {
PS_SET_MOD_DATA(NULL);
if (plist_key) {
efree(plist_key);

0 comments on commit 3574b28

Please sign in to comment.