Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved declaration structure #3

Open
wants to merge 2,244 commits into
base: 74bcc59cf712901bf4b4
Choose a base branch
from
Open

Improved declaration structure #3

wants to merge 2,244 commits into from

Conversation

iliaal
Copy link
Owner

@iliaal iliaal commented May 23, 2011

Move declaration methods around so that they don't need to sit inside the header file

yatsukhnenko and others added 30 commits November 4, 2019 17:21
In PR phpredis#1602 we decided to use unsigned short for storing RedisSock->port
but in previous release I reverted that change. In this PR I changed
signatire of redis_sock_create to prevent unneccecary convertion of types.
Adds some tests to protect against regressions when connecting to unix
sockets and high ports.
Add helper function to check liveness of connection after getting it
from the pool. Send `AUTH` before `PING` if necessary in pipeline.
* It should be impossible to cause a buffer overrun with this format
string but use the safer version anyway.

* Make the phpredis challenge string searchable and add 32 bits of
entropy since it's theoretically possible that two machines would
generate the same `tv_sec` + `tv_usec` string.
Add helper function to check liveness of connection after getting it
from the pool. Send `AUTH` before `PING` if necessary in pipeline.
* It should be impossible to cause a buffer overrun with this format
string but use the safer version anyway.

* Make the phpredis challenge string searchable and add 32 bits of
entropy since it's theoretically possible that two machines would
generate the same `tv_sec` + `tv_usec` string.
These methods accept a single argument, not two arguments.
(cluster_cmd_get_slot accepts one argument)
Fix proto comments for host_port in RedisCluster
package.xml has a minimum version of 7.0
PHP 8.0 will probably be out in around a year.
Remove "PHP Version 5" comment section
I our test suite we were only checking if an exception was an instance
of `RedisException` and marking the test 'SKIPPED' if not.  This was
masking a failure in the RedisCluster test for testMultiExec by showing
it as skipped when it was actually throwing an exception (not being able
to execute the MULTI across the cluster).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.