2452 Commits

Author SHA1 Message Date
michael-grunder 5ceba7c6d9 Prepare for 5.3.0RC2 5.3.0RC2 2020-06-26 13:00:12 -07:00
michael-grunder 3ba3f06d51 Attempt to run LZ4 tests in Travis 2020-06-26 09:41:47 -07:00
Remi Collet df398cb07c Fix config.m4 errors and user pkg-config when possible 2020-06-26 08:57:26 -07:00
michael-grunder 57bb95bf5a Also NULL terminate if format is NULL 2020-06-26 08:36:30 -07:00
michael-grunder 262cc70e9e Update documentation with new feature info 2020-06-26 08:36:16 -07:00
michael-grunder 0838b5bde7 Make sure we NULL terminate our pool ID 2020-06-25 16:22:45 -07:00
michael-grunder dd3a11a8f7 Finalize 5.3.0RC changelog/package.xml 5.3.0RC1 2020-06-25 11:11:02 -07:00
michael-grunder f7ed4aabe1 Prepare for 5.3.0 RC1 release 2020-06-24 21:46:04 -07:00
michael-grunder 857a2af497 Add liveness check and create pconnect "YOLO" mode. 2020-06-24 18:13:54 -07:00
Michael Grunder a311cc4ec3 Support for Redis 6 ACLs (#1791)
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-24 17:00:01 -07:00
Michael Grunder 04def9fbe2 Rebased LZ4 PR (#1781)
LZ4 compression by @iliaal
2020-06-07 14:09:30 -07:00
Michael Grunder 5ca4141c72 Issue.1765 (#1774)
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-07 13:50:22 -07:00
Michael Grunder a0c53e0b30 Issue.1762 xinfo full (#1771)
Add support for `XINFO STREAM FULL [COUNT]`
2020-06-07 13:48:06 -07:00
Pavlo Yatsukhnenko 58dab5649f Store auth information in cluster->flags->auth 2020-06-05 10:27:48 +03:00
Pavlo Yatsukhnenko 890ee0e656 TravisCI: test tls connect 2020-06-05 09:40:53 +03:00
Pavlo Yatsukhnenko a25d1b864c Merge pull request #1776 from phpredis/issue-1600
Issue #1600
2020-06-03 08:08:04 +03:00
Pavlo Yatsukhnenko e41e19a834 Don't call Redis::__constructor while initilizing RedisArray (#1777) 2020-06-02 15:40:08 -07:00
Pavlo Yatsukhnenko b067129678 Issue #1600
Ssl context options in Redis::connect
2020-06-02 17:38:12 +03:00
Michael Grunder 5bf881244d Use ZEND_LONG_FMT and avoid typecast in hMset (#1770)
See #1764
2020-05-31 22:36:36 -07:00
Michael Grunder f9c7bb5788 Adds Redis 6.0 KEEPTTL option for SET (#1766)
Added support for KEEPTTL option of SET command, which added in Redis 6

See: #1761

Co-authored-by: victor <viktork@sekindo.com>
2020-05-23 14:25:41 -07:00
victor f13f9b7c7f During scan build the command using long type for iterator instead of int. Shall resolve issues with Redis Enterprise which uses big 64 bit numbers for cursor.
Conflicts:
	redis.c
2020-05-22 12:25:17 +03:00
Pavlo Yatsukhnenko 3ceb41065a Merge pull request #1763 from mi-nakano/bugfix/PHP_REDIS_JSON
bugfix: PHP_REDIS_JSON parameter at configure
2020-05-21 18:42:47 +03:00
mi-nakano 20a3dc7251 bugfix: PHP_REDIS_JSON parameter at configure 2020-05-21 22:14:00 +09:00
Pavlo Yatsukhnenko e80600e244 Issue #548 (#1649)
Adds `Redis::SCAN_PREFIX` and `Redis::SCAN_NOPREFIX` as options to SCAN.

See #548
2020-05-18 18:11:40 -07:00
Pavlo Yatsukhnenko 508fef6f18 Remove unused PHP_MSHUTDOWN_FUNCTION 2020-05-17 23:19:01 +03:00
Pavlo Yatsukhnenko 215828e347 Fix scan-build warning 2020-05-08 11:58:08 +03:00
Pavlo Yatsukhnenko 98499bbb18 Update changelog 2020-05-08 10:16:33 +03:00
Remi Collet b9b383f499 fix [-Wformat=] warning on 32-bit (#1750)
Use the portable `ZEND_LONG_FORMAT` family instead of C format specifiers
2020-05-06 09:46:43 -07:00
Michael Grunder 201a975999 Make unit test authentication configurable (#1748)
Right now cloning the repo and running unit tests will all fail if the
Redis/RedisCluster instances aren't configured with the password
'phpredis'.

This commit simply makes authentication during the tests optional via a
command-line argument.
2020-04-30 21:22:40 -07:00
Pavlo Yatsukhnenko 73212e1414 Refactor redis_sock_get_connection_pool 2020-04-24 17:12:26 +03:00
Michael Grunder 6808cd6a7a Fix documentation to show lPush and rPush are variadic. (#1737)
Addresses #1734
2020-04-10 13:11:24 -07:00
Pavlo Yatsukhnenko 4ef465b573 Merge pull request #1731 from phpredis/server-open-auth
Server open auth
2020-04-01 08:45:40 +03:00
Pavlo Yatsukhnenko 35372a1f64 Authenticate in redis_sock_server_open 2020-03-30 22:34:12 +03:00
Pavlo Yatsukhnenko e37f38a39e requirepass 2020-03-30 13:32:27 +03:00
Pavlo Yatsukhnenko dd66fceeb2 Update session.save_path in RedisClusterTest::sessionTest 2020-03-30 00:15:21 +03:00
Pavlo Yatsukhnenko 8c45816dbf Set redis_sock->stream to NULL to avoid use-after-free 2020-03-21 17:25:29 +02:00
Pavlo Yatsukhnenko 48b3dd6705 Update Changelog.md 2020-03-21 17:07:17 +02:00
Pavlo Yatsukhnenko bbcf32a37f Remove unused declarations 2020-03-21 17:04:15 +02:00
Pavlo Yatsukhnenko a42cf189a7 Remove duplicate definitions 2020-03-19 23:00:25 +02:00
Pavlo Yatsukhnenko 6b82d40ed5 Update Changelog.md 2020-03-16 23:08:56 +02:00
Pavlo Yatsukhnenko a8e2b021f9 Fix arginfo for Redis::zadd 2020-03-16 22:54:46 +02:00
Pavlo Yatsukhnenko b7f9df758b Issue #1721
Sanity check for redis_sock->stream before closing.
2020-03-11 15:49:22 -07:00
Pavlo Yatsukhnenko 460c8f2923 Various small changes in cluster_library 2020-03-10 23:16:35 +02:00
Pavlo Yatsukhnenko 8c86568610 Merge branch 'nightly' into develop 2020-03-09 14:29:36 +02:00
Pavlo Yatsukhnenko 7e4c7b3e69 Change version_compare usage in tests 2020-03-09 14:19:26 +02:00
Pavlo Yatsukhnenko 9ee94ca4f6 fix usage php_hash_fetch_ops with PHP 8 2020-03-09 14:00:07 +02:00
Pavlo Yatsukhnenko 190c0d34ad Fix redis_cluster GET_CONTEXT usage 2020-03-09 13:46:26 +02:00
Pavlo Yatsukhnenko d5dadaf635 Add PHPREDIS_GET_OBJECT and PHPREDIS_ZVAL_GET_OBJECT macros 2020-03-09 13:36:27 +02:00
Michael Grunder 92f8dde1c9 Issue.1636 del documentation (#1718)
* Update multiple key command documentation

See #1636
2020-03-02 11:23:24 -08:00
Michael Grunder 0ce7ca2fb1 Issue.1714 json session tests (#1717)
* Add json.so as well if we don't find it.

See #1714

* Remove added newline
2020-03-02 11:03:51 -08:00