mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
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.
This commit is contained in:
+1
-1
@@ -1125,7 +1125,7 @@ PHP_METHOD(RedisArray, mset)
|
||||
|
||||
/* Generic handler for DEL or UNLINK which behave identically to phpredis */
|
||||
static void ra_generic_del(INTERNAL_FUNCTION_PARAMETERS, char *kw, int kw_len) {
|
||||
zval *object, z_keys, z_fun, *data, z_ret, *z_tmp, *z_args;
|
||||
zval *object, z_keys, z_fun, *data, z_ret, *z_args;
|
||||
int i, n;
|
||||
RedisArray *ra;
|
||||
int *pos, argc = ZEND_NUM_ARGS(), *argc_each;
|
||||
|
||||
Reference in New Issue
Block a user