Skip to content

Commit

Permalink
Fixed method call problem causes session handler to display two times
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoco authored and ZiHang Gao committed Jul 19, 2016
1 parent 2d6bf93 commit 24f86c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions redis.c
Expand Up @@ -548,11 +548,6 @@ static void add_class_constants(zend_class_entry *ce, int is_cluster TSRMLS_DC)

zend_declare_class_constant_stringl(ce, "AFTER", 5, "after", 5 TSRMLS_CC);
zend_declare_class_constant_stringl(ce, "BEFORE", 6, "before", 6 TSRMLS_CC);

#ifdef PHP_SESSION
php_session_register_module(&ps_mod_redis);
php_session_register_module(&ps_mod_redis_cluster);
#endif
}

/**
Expand Down Expand Up @@ -623,6 +618,11 @@ PHP_MINIT_FUNCTION(redis)
/* Add shared class constants to Redis and RedisCluster objects */
add_class_constants(redis_ce, 0 TSRMLS_CC);
add_class_constants(redis_cluster_ce, 1 TSRMLS_CC);

#ifdef PHP_SESSION
php_session_register_module(&ps_mod_redis);
php_session_register_module(&ps_mod_redis_cluster);
#endif

return SUCCESS;
}
Expand Down

0 comments on commit 24f86c4

Please sign in to comment.