Commit Graph

2799 Commits

Author SHA1 Message Date
michael-grunder
3acd84a4ae Fix deprecated string format for php 8.2
PHP 8.2 deprecates "${var}" in favor of "{$var}"
2022-09-22 22:53:11 -07:00
michael-grunder
b7bf22d4c9 Add an example with a unix socket and timeout
See: #1663
2022-09-22 19:55:14 -07:00
michael-grunder
21c3ef94e8 Fix typos/bad Markdown in cluster.markdown 2022-09-19 12:17:06 -07:00
Marius Adam
f2bfd72357 Issue #2080: avoid registering the same replicas multiple times in case the master handles multiple slot ranges 2022-09-19 12:09:35 -07:00
Dawid 'DeyV' Polak
130b5d0b8e Update INSTALL.markdown
On https://pecl.php.net/package/redis is hard to find url to windows dll's - direct url will help https://windows.php.net/downloads/pecl/releases/redis/
2022-09-18 01:22:32 -07:00
Michael Grunder
39a01ac7b5 Return false or NULL on empty lpos response (#2151)
Return false or NULL on empty lpos response

To be consistent with other PhpRedis methods, we should return either
false or NULL when LPOS returns no results, depening on
NULL_MBULK_AS_NULL setting.
2022-09-18 01:21:20 -07:00
Michele Locati
59053f10d9 Add missing configureoption entries in package.xml 2022-09-17 14:51:42 -07:00
Pavlo Yatsukhnenko
fcd4aab032 Merge pull request #2140 from phpredis/issue-1894-geosearch
Issue #1894
2022-09-15 22:44:34 +03:00
michael-grunder
fb6a297ccc CodeQL fixes 2022-09-15 09:37:48 -07:00
michael-grunder
d67b2020e5 Pull COUNT/ANY parsing into a helper function.
See #1894
2022-09-15 08:59:03 -07:00
Michael Grunder
a3d2f1319d Add 'BIT'/'BYTE' modifier to BITCOUNT + tests (#2149)
BITCOUNT can take a third optional argument ('BIT', or 'BYTE').

Additionally add a specific test for BITCOUNT that tests all of the
legal ways it can be called in PhpRedis.
2022-09-15 01:29:31 -07:00
Michael Grunder
b3ce048669 Fix non standards conforming prototypes. (#2150)
These now generate warnings with GCC 13
2022-09-14 22:54:22 -07:00
sergkash7
0f502c9ec5 Update redis.stub.php (#2120) 2022-09-08 13:20:00 -07:00
Pavlo Yatsukhnenko
34c237ea21 Merge pull request #2147 from phpredis/issue-1894-client
Redis::client command
2022-09-08 20:30:21 +03:00
Pavlo Yatsukhnenko
a8d10291a2 Redis::client command 2022-09-07 22:47:02 +03:00
Pavlo Yatsukhnenko
8d99181e81 Merge pull request #2146 from phpredis/issue-2141
Issue #2141
2022-08-24 23:23:08 +03:00
Pavlo Yatsukhnenko
a471c87a3b Issue #2141
Fix segfault with session+tls
2022-08-21 14:59:39 +03:00
Muhammad Dyas Yaskur
eba1c6d29c Fix Link Typo (#2145) 2022-08-18 10:52:35 -07:00
Pavlo Yatsukhnenko
3ed0feaa31 Merge pull request #2143 from nicolas-grekas/typo
Fix typo
2022-08-16 20:18:45 +03:00
Nicolas Grekas
703d71b530 Fix typo 2022-08-16 18:06:47 +02:00
Pavlo Yatsukhnenko
bf6f31e372 Issue #1894
Add the ANY argument to GEOSEARCH and GEORADIUS
2022-08-06 12:51:53 +03:00
Pavlo Yatsukhnenko
677c9da3cb Merge pull request #2131 from phpredis/issue-1943
Issue #1943
2022-08-03 22:41:30 +03:00
Pavlo Yatsukhnenko
687a5c7880 Issue #1943
Add lPos command.
2022-08-03 22:28:08 +03:00
Pavlo Yatsukhnenko
b2bb2f519f Merge pull request #2138 from patricio-dorantes/redis_session-sa-tls
fix redis session standalone stream ssl context
2022-08-03 20:53:19 +03:00
patricio.dorantes
2ff11df528 redis_session clean up ssl context. 2022-08-03 10:57:01 -05:00
patricio.dorantes
d1bc672752 fix use after free, initialize on NULL 2022-08-02 17:36:54 -05:00
patricio.dorantes
ed10f365e7 fix redis session standalone stream ssl context 2022-08-01 11:16:24 -05:00
Pavlo Yatsukhnenko
8159048b58 Merge pull request #2127 from phpredis/php82-sensitive-param
mark auth param as sensitive for PHP 8.2
2022-07-30 14:33:40 +03:00
Remi Collet
584f6b172e empty 2022-07-28 07:28:41 +02:00
Remi Collet
a38e08daa1 regenerate arginfo using 8.2.0beta1 2022-07-18 13:46:36 +02:00
Remi Collet
a7e5ea643a fix closing condition 2022-07-18 13:46:11 +02:00
Remi Collet
3cd5ac1e27 use spl_ce_RuntimeException (exists since 5.6) 2022-07-18 13:46:10 +02:00
Remi Collet
3675f442e4 mark auth param as sensitive for PHP 8.2
refactor MINIT (split in each class sources file)
use @generate-class-entries in stub files
add RedisException and RedisClusterException in stub files
2022-07-18 13:45:45 +02:00
Pavlo Yatsukhnenko
0f1ca0ccf8 Unsubscribe from all channels 2022-07-15 16:14:23 +03:00
Pavlo Yatsukhnenko
8e747ecec9 Merge pull request #2123 from phpredis/pubsub
Refactor subscribe/unsubscribe
2022-07-15 09:19:00 +03:00
Pavlo Yatsukhnenko
bfcc4292b2 Merge pull request #2129 from phpredis/issue-1768
Issue #1768
2022-07-12 18:55:45 +03:00
Pavlo Yatsukhnenko
e858e8e333 Issue #1768
Allow multiple field-value pairs for hmset command.
2022-07-12 17:15:55 +03:00
Pavlo Yatsukhnenko
765d3cdf24 Merge pull request #2126 from phpredis/issue-2122
Issue #2122
2022-07-08 22:09:19 +03:00
Pavlo Yatsukhnenko
c28ad7bbd6 Issue #2122
Allow IPv6 address within square brackets
2022-07-03 18:33:42 +03:00
Pavlo Yatsukhnenko
982bd13b9f Refactor redis_parse_info_response 2022-07-01 21:03:24 +03:00
Pavlo Yatsukhnenko
393c0bde26 Merge pull request #2125 from phpredis/actions
GitHub Actions
2022-07-01 11:02:53 +03:00
Pavlo Yatsukhnenko
9d61504e75 GitHub Actions
Test builds on macos and windows
2022-06-30 20:55:14 +03:00
Pavlo Yatsukhnenko
9ff5c33a17 Install redis from official repository 2022-06-29 20:03:40 +03:00
Pavlo Yatsukhnenko
de3635dad5 Change PHPREDIS_CTX_PTR type 2022-06-29 17:31:03 +03:00
Pavlo Yatsukhnenko
cf2c052c7b Fix invalid allocation size 2022-06-28 23:11:37 +03:00
Pavlo Yatsukhnenko
3c9e159c7e Refactor subscribe/unsubscribe 2022-06-28 18:18:38 +03:00
Pavlo Yatsukhnenko
1fb2935b1e Replace strtok_r with php_strtok_r #2 2022-06-28 09:56:30 +03:00
Pavlo Yatsukhnenko
aaa4c91a76 Replace strtok_r with php_strtok_r 2022-06-22 21:42:09 +03:00
Pavlo Yatsukhnenko
e24b0843b3 Fix tests 2022-06-18 19:54:31 +03:00
Pavlo Yatsukhnenko
68136a2972 Refactor redis_parse_client_list_response 2022-06-18 19:46:28 +03:00