Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5b7f85

Browse files
Fix for linker error
Reorder inclusion of common.h in redis_session.c. Fix a couple of unused variable warnings Potential fix for phpredis#929
1 parent a86914f commit d5b7f85

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

library.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ PHP_REDIS_API char *redis_sock_read_bulk_reply(RedisSock *redis_sock, int bytes
462462
PHP_REDIS_API char *redis_sock_read(RedisSock *redis_sock, int *buf_len TSRMLS_DC)
463463
{
464464
char inbuf[1024];
465-
char *resp = NULL;
466465
size_t err_len;
467466

468467
if(-1 == redis_check_eof(redis_sock, 0 TSRMLS_CC)) {

redis_cluster.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ zend_class_entry *redis_cluster_ce;
3737

3838
/* Exception handler */
3939
zend_class_entry *redis_cluster_exception_ce;
40-
static zend_class_entry *spl_rte_ce = NULL;
4140

4241
/* Handlers for RedisCluster */
4342
zend_object_handlers RedisCluster_handlers;

redis_session.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
+----------------------------------------------------------------------+
2121
*/
2222

23+
#include "common.h"
24+
2325
#ifdef HAVE_CONFIG_H
2426
#include "config.h"
2527
#endif
2628

2729
#ifdef PHP_SESSION
28-
#include "common.h"
2930
#include "ext/standard/info.h"
3031
#include "php_redis.h"
3132
#include "redis_session.h"

0 commit comments

Comments
 (0)