Pavlo Yatsukhnenko
fa5f6e1411
Merge pull request #1365 from remicollet/issue-runcmd
...
use PHP_BINARY instead of php and allow override
2018-06-08 17:56:41 +03:00
Remi Collet
ff32a63415
Fix: Warning: time() expects exactly 0 parameters, 1 given ... (php 7.3)
2018-06-08 16:16:53 +02:00
Remi Collet
c4e4248dbe
use PHP_BINARY instead of php and allow override
...
honours TEST_PHP_EXECUTABLE and TEST_PHP_ARGS (as standard php tests)
2018-06-08 16:02:36 +02:00
Marius Meissner
d0cada2268
PHPREDIS-1354: Refactored tests to work also with Redis cluster
2018-06-06 09:55:50 +02:00
Marius Meissner
21436f61dd
PHPREDIS-1354: Added session lifetime parameter for reading session data
2018-05-23 12:13:13 +02:00
Marius Meissner
e2d5b5ea49
PHPREDIS-1354: Added session TTL tests
2018-05-22 17:24:47 +02:00
michael-grunder
368975bc30
Remove debug code! :)
2018-04-10 12:07:06 -07:00
michael-grunder
411b6aa5b1
Adds STORE and STOREDIST to GEORADIUS[BYMEMBER]
...
* Adds the STORE and STOREDIST options to GEORADIUS[BYMEMBER] for
both Redis and RedisCluster classes. We attempt to protect the
caller from CROSSLOT errors on the client side so as to make it
obvious when that is happening.
* Created a struct to carry around GEORADIUS options as there are
now two more and there were already a lot.
* Moved the structs/enums to handle GEORADIUS into the source file
instead of header as they aren't needed outside of redis_commands.c
2018-04-10 12:07:06 -07:00
michael-grunder
dba618a1e0
Use uniqid()
2018-04-10 12:06:36 -07:00
michael-grunder
e599ecf186
Fallback if we don't have openssl
2018-04-10 12:06:36 -07:00
Pavlo Yatsukhnenko
300c72510c
Merge branch 'session-locking' into develop
...
Conflicts:
redis_session.c
tests/RedisTest.php
2018-03-24 17:45:51 +02:00
Marius Meissner
517644a276
Fixed failing Travis builds caused by missing session handler interface on PHP < 5.4
2018-03-01 12:53:38 +01:00
Marius Meissner
1fb97aa511
Removed background operator, which could lead to race conditions
2018-03-01 12:47:46 +01:00
Marius Meissner
948e4b8dc3
Added tests for using session proxy handler
2018-03-01 11:30:24 +01:00
Marius Meissner
d8a44723b5
Removed unused variables + added assertion if session key changed
2018-03-01 11:14:38 +01:00
Remi Collet
627bd89b45
skip online test
2018-02-08 05:47:28 +01:00
michael-grunder
2828c2f187
Merge branch 'issue.1287' into develop
2018-01-25 10:59:40 -08:00
michael-grunder
625fadeb51
Merge branch 'swapdb-command' into develop
2018-01-18 17:38:09 -08:00
michael-grunder
03f77018ce
Add a test for SWAPDB
2018-01-18 11:01:53 -08:00
michael-grunder
84f1f28ba2
Implement SWAPDB command
2018-01-18 09:04:25 -08:00
michael-grunder
6028df5226
Remove debug line in unit tests
2018-01-17 14:40:32 -08:00
michael-grunder
9e65c42931
Implement UNLINK command
...
This commit implements UNLINK for Redis, RedisCluster, and RedisArray.
To a client library UNLINK behaves identically to DEL so we can use the
same handlers for both.
2018-01-17 09:36:38 -08:00
michael-grunder
815d2013b4
Much simpler exception test
2018-01-12 09:01:06 -08:00
michael-grunder
a0dc22220c
Actually commit the cluster code to skip the exception test
2018-01-11 19:33:01 -08:00
michael-grunder
4090af15b8
Adds a test for throwing a connect exception
2018-01-11 19:29:14 -08:00
Andrew Sharpe
6be07a099a
isolate tests to find timing issue
2017-12-24 16:46:41 +10:00
Andrew Sharpe
4530944ed0
Allow session locking to work with session_regenerate_id (see #1267 )
2017-12-24 16:04:09 +10:00
michael-grunder
81f44dcc00
Skip ZRANGEBYLEX check if use is running Redis < 2.8.9
2017-12-15 08:13:57 -08:00
ndxbn
a99c450e82
add test for zRangeByLex method
2017-12-15 21:39:29 +09:00
Marius Meissner
810df7bcf2
PHPREDIS-37: Adjusted error reporting to show warnings but no notices
2017-11-02 15:28:28 +01:00
Marius Meissner
97e034efb0
PHPREDIS-37: Disabled error_reporting for session tests, to avoid failing tests caused by correct thrown warnings/notices
2017-11-02 14:24:51 +01:00
Marius Meissner
abb862d2f5
PHPREDIS-37: Add locking functionality
2017-10-30 11:28:33 +01:00
michael-grunder
dff7e15ed6
Actually use each potential invalid count in test
2017-10-22 23:27:57 -07:00
michael-grunder
f7edee5d8b
More robust GEORADIUS COUNT validation
...
While testing example code for Geo codes I discovered that passing
a negative count would cause PhpRedis to hang as it would send an
invalid number of arguments to the server.
2017-10-22 18:48:02 -07:00
Pavlo Yatsukhnenko
8cb2d5bd94
Issue #1048
...
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-17 17:08:42 +03:00
michael-grunder
caf5c9984c
Use old style array syntax
2017-08-20 13:45:10 -07:00
michael-grunder
cccc3997e9
Update EXISTS to handle multiple keys
...
Fixes #1223
2017-08-20 13:28:00 -07:00
michael-grunder
77aebadc73
Tests for doubling up on pipeline/multi calls
2017-08-14 15:06:57 -07:00
Pavlo Yatsukhnenko
5874b0775b
Allow mixing multi and pipeline modes
2017-08-08 23:17:49 +03:00
Pavlo Yatsukhnenko
ad45964150
Using ZVAL_DEREF macros for dereference input variables.
...
This PR fixes issues #946 and #1166 .
2017-05-09 23:17:20 +03:00
michael-grunder
d2e203a630
Adds optional COUNT argument to sPop
...
Fixes #1145
2017-04-16 21:21:31 -07:00
michael-grunder
9ac9845d32
Use old style array declaration
2017-03-25 16:19:11 -07:00
michael-grunder
4aff3f9c00
Make RedisArray tests exit with a nonzero exit code on failure
2017-03-25 14:28:29 -07:00
Pavlo Yatsukhnenko
0c7b5f4771
Merge branch 'issue.1087' into develop
2017-03-04 19:56:36 +02:00
Pavlo Yatsukhnenko
c52077b7b0
Issue #1087
...
`hStrLen` command
2017-03-04 19:27:31 +02:00
Alberto Fernández
058753e4c9
Fix Null Bulk String response parsing in cluster library ( #1104 )
...
* 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
2017-02-09 14:56:34 +02:00
michael-grunder
4cd06b2908
Add a test for passing a single array into sInterStore
2017-01-27 12:17:54 -08:00
michael-grunder
6c1101f0e7
Test for calling connect multiple times on the same object
2017-01-02 17:54:01 -08:00
Remi Collet
28be4a8d28
display integer size in test suite output
2016-12-22 11:55:21 +01:00
Remi Collet
52dbe95c29
fix rounding issue on arm
2016-12-22 11:54:54 +01:00