Skip to content

Commit e573a6e

Browse files
committed
Merge pull request #201 from wcgallego/php7
removing unused var, fixing smart_str use w/ igbinary
2 parents b5a58cd + fb8ce9e commit e573a6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

php_memcached.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -3080,7 +3080,7 @@ zend_bool s_serialize_value (enum memcached_serializer serializer, zval *value,
30803080
*/
30813081
#ifdef HAVE_MEMCACHED_IGBINARY
30823082
case SERIALIZER_IGBINARY:
3083-
if (igbinary_serialize((uint8_t **) &buf->c, &buf->len, value) != 0) {
3083+
if (igbinary_serialize((uint8_t **) &(buf->s), &buf->s->len, value) != 0) {
30843084
php_error_docref(NULL, E_WARNING, "could not serialize value with igbinary");
30853085
return 0;
30863086
}
@@ -3575,7 +3575,6 @@ static int php_memc_do_result_callback(zval *zmemc_obj, zend_fcall_info *fci,
35753575
zval value;
35763576
zval retval;
35773577
uint64_t cas = 0;
3578-
zval params[2];
35793578
zval z_result;
35803579
uint32_t flags = 0;
35813580
int rc = 0;

0 commit comments

Comments
 (0)