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
2018-12-22Implement consistent hashing algorithm for RedisArrayPavlo Yatsukhnenko
2018-11-0632bit xclaim fix (#1444)Michael Grunder
This should fix the XCLAIM issue on 32-bit PHP installs. This change will allow the user to pass the XCLAIM TIME option pretty much any way they want (string, long, or float) and it should work. Note that in 32-bit PHP they will only be able to pass exact values <= 2^53 as PHP will use a double precision floating point for integer overflows.
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-10-04Undo breaking changesmichael-grunder
2018-10-04It's preferable to commit code that compilesmichael-grunder
2018-10-04Commit accidentally missed no-op macro changemichael-grunder
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 #1347Pavlo Yatsukhnenko
Fix arginfo for set command
2018-03-26Use zend_string for all lock_status membersPavlo Yatsukhnenko
2018-03-26Apply zend_string API for redis_session_keyPavlo Yatsukhnenko
2018-01-18Implement SWAPDB commandmichael-grunder
2017-11-17RefactoringPavlo Yatsukhnenko
Avoid socket connection in destructor Replace IF_ATOMIC/IF_MULTI/IF_PIPELINE macroses with IS_ATOMIC/IS_MULTI/IS_PIPELINE respectively. Remove IF_NOT_* macroses
2017-10-24MOD: Add tcp_keepalive option to redis sockgit-hulk
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-10-13fix arginfo for directed node commandsPavlo Yatsukhnenko
2017-10-05Add PHPREDIS_GET_OBJECT macrosPavlo Yatsukhnenko
2017-10-05Issue #1245Pavlo Yatsukhnenko
Move building `script` command logic to `redis_build_script_cmd` and use it in Redis and RedisCluster objects. Fix arginfo for `RedisCluster::script`. Fix memory leak in `cluster_raw_cmd` when `cluster_cmd_get_slot` fails.
2017-08-29More arginfo for RedisClusterPavlo Yatsukhnenko
This commit finally fixes issue #1055
2017-08-29More arginfo for RedisClusterPavlo Yatsukhnenko
2017-08-28More arginfo for RedisCluster + remove duplicatesPavlo Yatsukhnenko
2017-08-22Add arginfo for RedisArrayPavlo 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-15Fix static analyzer warningsPavlo Yatsukhnenko
2017-08-15ZEND_HASH_FOREACH_PTRPavlo Yatsukhnenko
2017-08-11refactoringPavlo Yatsukhnenko
Small change php5 implementation of ZEND_HASH_FOREACH_* macroses. Use ZEND_HASH_FOREACH_VAL in ra_get_key_type. Allocate array via MAKE_STD_ZVAL in HANDLE_MULTI_EXEC macro.
2017-08-08Allow mixing multi and pipeline modesPavlo Yatsukhnenko
2017-08-02Use ZSTR_VAL and ZSTR_LEN macroses to access zend_string fieldsPavlo Yatsukhnenko
2017-08-01Fix valgrind warningsPavlo Yatsukhnenko
Duplicate (MAKE_STD_ZVAL + ZVAL_ZVAL) params in php7 compatible implementation of call_user_function.
2017-07-28Init gc value for php5 zval_get_stringPavlo Yatsukhnenko
2017-05-09Using ZVAL_DEREF macros for dereference input variables.Pavlo Yatsukhnenko
This PR fixes issues #946 and #1166.
2017-04-21Merge branch 'issue.1156' into developPavlo Yatsukhnenko
2017-04-21refactoring (#1155)Pavlo Yatsukhnenko
Fix memory leak in `redis_long_response` when LONG_MAX overflow. Add return -1 in `redis_read_reply_type` when `php_stream_getc` returns EOF. Code formatting in `PHP_METHOD(Redis, exec)`.
2017-04-20Fix #1156Pavlo Yatsukhnenko
2017-04-12Modifying `redis_error_throw` to throw exception for all non recoverable errors.Pavlo Yatsukhnenko
2017-03-29Remove REDIS_SOCK_STATUS_UNKNOWN because no way to reach it.Pavlo Yatsukhnenko
2017-03-29remove unused constantsPavlo Yatsukhnenko
2017-03-14remove unused struct request_item + add redis_hstrlen_cmd protoPavlo Yatsukhnenko
2017-03-10refactoringPavlo Yatsukhnenko
In pipeline mode all commands are now stored in the buffer the memory for which is allocated with emalloc. There is no need to use a linked list.
2017-03-03free_reply_callbacksPavlo Yatsukhnenko
2017-03-03REDIS_PROCESS_RESPONSE_CLOSUREPavlo Yatsukhnenko
2017-03-02refactoringPavlo Yatsukhnenko
Modify redis_response_enqueued function. Wrap macros into do/while blocks.
2017-02-27put macros in orderPavlo Yatsukhnenko
2017-02-11refactoringPavlo Yatsukhnenko
redis_sock_get and redis_array_get return pointer to RedisSock/RedisArray structure instead of assign by pointer pointer
2017-02-10redis_objectPavlo Yatsukhnenko
2016-12-22Use correct legacy definition for ZEND_MOD_ENDmichael-grunder
2016-12-20fix 'this decimal constant is unsigned only in ISO C90' warningPavlo Yatsukhnenko
2016-12-20PHP_FE_END + ZEND_MOD_ENDPavlo Yatsukhnenko
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).
2016-12-02zval_get_stringPavlo Yatsukhnenko
Added gc attribute to zend_string (for zend_string_release). Added function zval_get_string and replace convert_to_string with it.