10000 PHPredis session must send null and -1 as persistent_id and perisiste… · jrtkcoder/phpredis@7713cc5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7713cc5

Browse files
committed
PHPredis session must send null and -1 as persistent_id and perisistent_id_len until persistent_id is implemented for phpredis sessions
1 parent 09694ee commit 7713cc5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

redis_session.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ PS_OPEN_FUNC(redis)
186186
}
187187
*/
188188

189+
/* // not suported yet
190+
// Extract persistent id from params, and send to redis_sock_create
191+
*/
192+
189193
zval_ptr_dtor(&params);
190194
}
191195

@@ -198,9 +202,9 @@ PS_OPEN_FUNC(redis)
198202

199203
RedisSock *redis_sock;
200204
if(url->path) { /* unix */
201-
redis_sock = redis_sock_create(url->path, strlen(url->path), 0, timeout, persistent);
205+
redis_sock = redis_sock_create(url->path, strlen(url->path), 0, timeout, persistent, NULL, -1);
202206
} else {
203-
redis_sock = redis_sock_create(url->host, strlen(url->host), url->port, timeout, persistent);
207+
redis_sock = redis_sock_create(url->host, strlen(url->host), url->port, timeout, persistent, NULL, -1);
204208
}
205209
redis_pool_add(pool, redis_sock, weight TSRMLS_CC);
206210

0 commit comments

Comments
 (0)
0