Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-09-08Issue #1782Pavlo Yatsukhnenko
Allow to specify stream context for rediscluster session handler.
2020-08-14Fix memory leak in rediscluster session handlerPavlo Yatsukhnenko
2020-07-07Proper cleanup and conditional address deallocation.michael-grunder
See: #1807
2020-07-06We don't want to efree a zend_stringmichael-grunder
2020-07-02Don't attempt to take ZSTR_VAL(NULL) (#1804)Michael Grunder
Fixes #1798
2020-06-25Support for Redis 6 ACLs (#1791)Michael Grunder
Add support for Redis 6 ACLs in the `Redis`, `RedisCluster`, and `RedisArray` classes. On a related note, it adds a mechanism for users to customize how we generate persistent connection IDs such that they can be grouped in different ways depending on the specific use case required (e.g. it would allow connections to be grouped by username, or by user-defined persistent_id, or both).
2020-06-07Issue.1765 (#1774)Michael Grunder
Various improvements and fixes to cluster slot caching. * Improves slot caching so any unique set of seeds all hash to the same key * Fix a couple of memory leaks. * Fixes a segfault when executing a multiple key command such as `MGET` or `MSET` while the cluster is resharding.
2020-06-05Store auth information in cluster->flags->authPavlo Yatsukhnenko
2020-03-30Authenticate in redis_sock_server_openPavlo Yatsukhnenko
2020-01-14Remove "PHP Version 5" sectionTyson Andre
package.xml has a minimum version of 7.0 PHP 8.0 will probably be out in around a year.
2020-01-10Also protect against session.gc_maxlifetime <= 0michael-grunder
Addresses #1694
2020-01-10Protect session.gc_maxlifetime from integer overflowmichael-grunder
2020-01-06Fix typos detected by codespellTyson Andre
2019-12-02Enable slot caching for session clusterMichael Booth
2019-10-26Issue #1657Pavlo Yatsukhnenko
Allow to specify schema for session handler.
2019-10-07Issue #1631Pavlo Yatsukhnenko
2019-07-27Refactor redis_sessionPavlo Yatsukhnenko
Use strpprintf instead of zend_string_alloc + memcpy.
2019-07-24Refactor redis_sessionPavlo Yatsukhnenko
Remove `refresh_lock_status` helper function
2019-07-23Refactor redis_sessionPavlo Yatsukhnenko
Use `redis_sock` to store `auth` and `prefix` for session. Use `redis_sock_auth` insted of `redis_pool_member_auth`.
2019-07-09cleanup TSRMLS_* usageRemi Collet
2019-02-12Don't check lock status in PS_UPDATE_TIMESTAMP_FUNCPavlo Yatsukhnenko
2019-02-12Don't check the number affected keys in PS_UPDATE_TIMESTAMP_FUNCPavlo Yatsukhnenko
2019-01-27PHP 5 is dead, long live PHP 7michael-grunder
This commit removes support for PHP 5 by getting rid of all of our Zend compatibility layer methods, as well as any call checking against PHP_MAJOR_VERSION or ZEND_MODULE_API_NO. Unit tests are all passing for Redis, RedisCluster, and RedisArray but this should still be considered a work in progress until more testing can be done. Addresses issue #1448
2019-01-21Merge pull request #1494 from phpredis/cluster-auth2Pavlo Yatsukhnenko
RedisCluster auth
2019-01-21Merge pull request #1485 from phpredis/consistent-hashingPavlo Yatsukhnenko
Implement consistent hashing algorithm for RedisArray
2019-01-18RedisCluster authPavlo Yatsukhnenko
2018-12-27PHPREDIS-1412: Breaking the lock acquire loop in case of network problemsMarius Meissner
2018-12-22Implement consistent hashing algorithm for RedisArrayPavlo Yatsukhnenko
2018-11-21Remove unused parameter lazy_connect from redis_sock_createPavlo Yatsukhnenko
2018-11-07Fix redis_sessionPavlo Yatsukhnenko
Prevent infinite loop when redis_sock_server_open failed. Check pool->lock_status.session_key is not NULL in PS_CLOSE_FUNC.
2018-11-07Fix coverity scan warningsPavlo Yatsukhnenko
2018-11-07Fix memory leak when aquiring lockPavlo Yatsukhnenko
2018-11-07Fix a memory leak when regenerating IDs (#1445)Michael Grunder
Make sure we free any existing session lock key if we're going to update it. Otherwise we will leak that memory.
2018-10-01Fix scan-build warningsPavlo Yatsukhnenko
2018-09-29Streams (#1413)Michael Grunder
Streams API
2018-08-22Change connect/reconnect logicPavlo Yatsukhnenko
Persistant connections can be closed via close method. Connection marked as failed only after reconnection attempts.
2018-07-29Issue #1367Pavlo Yatsukhnenko
Use `zval_get_long` instead of `Z_STRVAL_P` + `atof` for parsing timeout and read_timeout params.
2018-06-04Minor refactoringHongbo Liu
2018-06-04Add callbacks validate_sid() & update_timestamp() to session handlerHongbo Liu
Newer session handler API(PS_MOD_UPDATE_TIMESTAMP) supports 2 more callbacks: * validate_sid() is used by session.use_strict_mode, which provides better security. * update_timestamp() is used by session.lazy_write, which can improve performance in some situations.
2018-05-31Issue #1358Pavlo Yatsukhnenko
Use `cluster_free` in `free_cluster_context` to free cluster object. Call `cluster_disconnect` before destroying cluster object.
2018-03-26Use zend_string for all lock_status membersPavlo Yatsukhnenko
2018-03-26Apply zend_string API for redis_session_keyPavlo Yatsukhnenko
2018-03-24Extra memory duplicationPavlo Yatsukhnenko
2018-03-24Merge branch 'session-locking' into developPavlo Yatsukhnenko
Conflicts: redis_session.c tests/RedisTest.php
2018-03-24Fixes after merge for php5Pavlo Yatsukhnenko
2018-03-24Fixes after mergePavlo Yatsukhnenko
2018-03-24Merge pull request #1312 from SkydiveMarius/session-lockingPavlo Yatsukhnenko
Session locking: Fix regenerate ID bug (PHP5, proxy handler)
2018-03-07Remove redis_pool_newPavlo Yatsukhnenko
2018-03-06Refactor redis sessionPavlo Yatsukhnenko
* Use zend_string for storing auth and prefix members * Allocate redis_session_lock_status structure jointly with redis_pool * Remove redis_pool_new function
2018-03-05PR-1312: Only copy sesseion key if it changedMarius Meissner