diff options
author | michael-grunder <michael.grunder@gmail.com> | 2019-02-09 08:31:47 +0300 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2019-02-09 08:31:47 +0300 |
commit | fa130a4bd46200d799f0659b709c8062c87f692b (patch) | |
tree | fdeb696c1e1ec9db02b765deefc38eaedd4188c9 /redis_commands.c | |
parent | f9928642b5e539bbdca43ec51ed9c9642cb42ded (diff) |
PHP 7 exception and compiler warning fixes
PHP 7 removed TSRMLS_CC from zend_throw_exception* routines.
Additionally this commit creates two simple wrapper macros for throwing
Redis or RedisCluster exceptions so we don't duplicate as much code.
Additionally there were a couple of minor compiler warnings printf type
correctness fixed in this commit.
Diffstat (limited to 'redis_commands.c')
-rw-r--r-- | redis_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis_commands.c b/redis_commands.c index 078d12c0..263e3516 100644 --- a/redis_commands.c +++ b/redis_commands.c @@ -4027,7 +4027,7 @@ void redis_unserialize_handler(INTERNAL_FUNCTION_PARAMETERS, zval zv, *z_ret = &zv; if (!redis_unserialize(redis_sock, value, value_len, z_ret TSRMLS_CC)) { // Badly formed input, throw an execption - zend_throw_exception(ex, "Invalid serialized data, or unserialization error", 0 TSRMLS_CC); + zend_throw_exception(ex, "Invalid serialized data, or unserialization error", 0); RETURN_FALSE; } RETURN_ZVAL(z_ret, 1, 0); |