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
2019-07-09cleanup TSRMLS_* usageRemi Collet
2019-07-05Issue #1591 (#1592)Pavlo Yatsukhnenko
* Issue #1591 * Add notes to Changelog
2019-06-15WIP: Enable pooling for cluster slave nodes.michael-grunder
Connections are stashed via redis_sock_disconnect so if RedisCluster doesn't explicitly call that for slaves then pooling is never used for those connections. Addresses #1568
2019-06-12Fix xInfo ro RedisClusterPavlo Yatsukhnenko
2019-05-13Adds OPT_REPLY_LITERAL for rawCommand and EVALmichael-grunder
Adds an option to process the actual strings in simple string replies as opposed to translating them to `true`. This only applies to `rawCommand` and `eval` because as far as I know know vanilla Redis command attaches any information besides `OK` to simple string replies. Addresses #1550
2019-05-11Fix copy-paste typoPavlo Yatsukhnenko
2019-05-11Fix support for STREAM to the RedisCluster::type commandPavlo Yatsukhnenko
2019-02-10Attach slot cache key and mechanism for invalidationmichael-grunder
2019-02-09Merge exception fixes into cluster-slot-cachemichael-grunder
2019-02-09PHP 7 exception and compiler warning fixesmichael-grunder
PHP 7 removed TSRMLS_CC from zend_throw_exception* routines. Additionally this commit creates two simple wrapper macros for throwing Redis or RedisCluster exceptions so we don't duplicate as much code. Additionally there were a couple of minor compiler warnings printf type correctness fixed in this commit.
2019-02-09WIP: Reimplementation of cluster slot cachingmichael-grunder
RedisCluster currently has a high construction overhead because every request has to issue a CLUSTER SLOTS command to map the keyspace. The issue is especially evident when a request only does a few commands.
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-18RedisCluster authPavlo Yatsukhnenko
2018-11-23Fix build warning for PHP 5Pavlo Yatsukhnenko
2018-11-22Issue #1464Pavlo Yatsukhnenko
2018-11-22Masters info leakfix (#1462)Michael Grunder
Fix for memory leaks in `RedisCluster->_masters()` and `RedisCluster->info()`
2018-11-21Remove unused parameter lazy_connect from redis_sock_createPavlo Yatsukhnenko
2018-10-17Simplify short-circuit logicmichael-grunder
2018-10-17Make our timeout or response error handling more explicit.michael-grunder
Although a -1 return value from cluster_check_response is likely a timeout, it is not the only possibility, so handle the loop timeout and error response in distinct ways.
2018-10-14Treat a -1 response from cluster_check_response as a timeout.michael-grunder
When cluster_check_response returns -1 this can be treated as a timeout. Note that there is one non-timout condition which can cause a -1 response, but that is a corrupted MOVE/ASK reply which can *probably* be treated as a timeout as well, because it means that something has gone horribly wrong with the connection. Addresses #1425
2018-10-08Reset the socket after a timeout to make sure no wrong data is received (#1417)Marc de Jonge
* Reset the socket after a timeout to make sure no wrong data is received * Remove the lazy_connect completely * Missing TSRMLS_CC * Remove redundant check if the stream exists * Add the redis_sock_server_open to the CLUSTER_SEND_PAYLOAD macro
2018-09-29Streams (#1413)Michael Grunder
Streams API
2018-09-05Issue #1399Pavlo Yatsukhnenko
Fix printf format warnings
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-04Issue #1370Pavlo Yatsukhnenko
2018-05-31Issue #1358Pavlo Yatsukhnenko
Use `cluster_free` in `free_cluster_context` to free cluster object. Call `cluster_disconnect` before destroying cluster object.
2018-05-17Bulk strings can be zero lengthmichael-grunder
Addresses #1349
2018-04-08Don't leak a ZVALmichael-grunder
2018-02-17Some style normalizationmichael-grunder
2017-12-06Merge pull request #1280 from janic716/devPavlo Yatsukhnenko
the element of z_seeds may be a reference on php7
2017-12-06Prepare to merge #1280Pavlo Yatsukhnenko
2017-12-06the element of z_seeds may be a reference on php7chenjian
2017-11-20Fix cluster_init_seeds. Thanks @adlagares!Pavlo Yatsukhnenko
2017-11-17Remove trailing spacesPavlo Yatsukhnenko
2017-10-17Issue #1048Pavlo Yatsukhnenko
This commit is adding support of data compression. LZF was choosen because it small and fast and Redis server uses it. Since [pecl package](https://pecl.php.net/package/lzf) doesn't provide lzf.h file after installing, LZF library was added as submodule. Another algorythms may be easely added by analogy with serializers. TODO: unit-tests for different data types.
2017-09-29Don't use convert_to_string in redis_hmget_cmdPavlo Yatsukhnenko
2017-08-16Use zend_string to store strings in RedisSockPavlo Yatsukhnenko
Following fields were changed: err, prefix, persistent_id, auth and host
2017-08-15ZEND_HASH_FOREACH_PTRPavlo Yatsukhnenko
2017-08-02Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fieldsPavlo Yatsukhnenko
2017-07-31Fix valgrind warningsPavlo Yatsukhnenko
2017-07-20CID 157207Pavlo Yatsukhnenko
2017-07-19Fix some static analyzer warningsPavlo Yatsukhnenko
Two types of warnings were fixed in this commit: 1. The left operand of '<=' is a garbage value 2. Function call argument is an uninitialized value
2017-04-11Processing `read_timeout` parameter + update docsPavlo Yatsukhnenko
2017-04-05Increasing read buffers size.Pavlo Yatsukhnenko
When Redis server is running in protected mode it returns error message more than 1024 bites long so first call of redis_sock_gets doesn't read whole message and next call causes "protocol error, got '%c' as reply type byte" exception.
2017-02-15Fix memory leakmichael-grunder
2017-02-09Fix Null Bulk String response parsing in cluster library (#1104)Alberto Fernández
* Failing test case when running LUA with bulk empty response * Fix issue when parsing bulk array response from eval commands * Added test for bulk LUA responses and changed condition * Added multi tests and fixes in C code format
2016-12-21change redis_serialize to accept strlen_tRemi Collet
2016-12-21fix #1074 change redis_key_prefix to accept strlen_tRemi Collet
2016-12-20OCD spacing FTWmichael-grunder
2016-12-19Fix compiler warnings.michael-grunder
Changed zend hash function overrides to extern in the header, and then defined them in library.c Created a simple macro to suppress "set but not used" warnings, which differ depending on build environment (php 5 vs php 7).