File tree Expand file tree Collapse file tree 3 files changed +0
-14
lines changed Expand file tree Collapse file tree 3 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -3903,8 +3903,6 @@ PHP_METHOD(Redis, zAdd) {
39033903 zval * * z_args ;
39043904 int argc = ZEND_NUM_ARGS (), i ;
39053905
3906- smart_str buf = {0 };
3907-
39083906 /* get redis socket */
39093907 if (redis_sock_get (getThis (), & redis_sock TSRMLS_CC , 0 ) < 0 ) {
39103908 RETURN_FALSE ;
Original file line number Diff line number Diff line change @@ -126,17 +126,6 @@ void redis_destructor_redis_array(zend_rsrc_list_entry * rsrc TSRMLS_DC)
126126 redis_array_free (ra );
127127}
128128
129- int le_redis_array ;
130- void redis_destructor_redis_array (zend_rsrc_list_entry * rsrc TSRMLS_DC )
131- {
132- RedisArray * ra = (RedisArray * )rsrc -> ptr ;
133-
134- /* Free previous ring if it's set */
135- if (ra -> prev ) redis_array_free (ra -> prev );
136-
137- /* Free parent array */
138- redis_array_free (ra );
139- }
140129
141130/**
142131 * redis_array_get
Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ PHP_REDIS_API redis_pool_member *
152152redis_pool_get_sock (redis_pool * pool , const char * key TSRMLS_DC ) {
153153 redis_pool_member * rpm = pool -> head ;
154154 unsigned int pos , i ;
155- redis_pool_member * rpm = pool -> head ;
156155
157156 memcpy (& pos , key , sizeof (pos ));
158157 pos %= pool -> totalWeight ;
You can’t perform that action at this time.
0 commit comments