We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a7ac99 commit 93dbe76Copy full SHA for 93dbe76
php7/memcache_session.c
@@ -323,6 +323,16 @@ PS_READ_FUNC(memcache)
323
/* if missing value, skip this server and try next */
324
zval_dtor(&dataresult);
325
mmc_queue_push(&skip_servers, mmc);
326
+
327
+ /* if it is the last server in pool and connection was ok return success and empty string due to php70 changes */
328
+ if (skip_servers.len = pool->num_servers && skip_servers.len < MEMCACHE_G(session_redundancy)-1) {
329
+ *val = ZSTR_EMPTY_ALLOC();
330
+ mmc_queue_free(&skip_servers);
331
+ zval_ptr_dtor(&dataresult);
332
+ return SUCCESS;
333
334
+ }
335
336
}
337
else {
338
/* if missing lock, back off and retry same server */
0 commit comments