Skip to content

Commit

Permalink
Merge pull request #201 from wcgallego/php7
Browse files Browse the repository at this point in the history
removing unused var, fixing smart_str use w/ igbinary
  • Loading branch information
krakjoe committed Dec 17, 2015
2 parents b5a58cd + fb8ce9e commit e573a6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions php_memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -3080,7 +3080,7 @@ zend_bool s_serialize_value (enum memcached_serializer serializer, zval *value,
*/
#ifdef HAVE_MEMCACHED_IGBINARY
case SERIALIZER_IGBINARY:
if (igbinary_serialize((uint8_t **) &buf->c, &buf->len, value) != 0) {
if (igbinary_serialize((uint8_t **) &(buf->s), &buf->s->len, value) != 0) {
php_error_docref(NULL, E_WARNING, "could not serialize value with igbinary");
return 0;
}
Expand Down Expand Up @@ -3575,7 +3575,6 @@ static int php_memc_do_result_callback(zval *zmemc_obj, zend_fcall_info *fci,
zval value;
zval retval;
uint64_t cas = 0;
zval params[2];
zval z_result;
uint32_t flags = 0;
int rc = 0;
Expand Down

0 comments on commit e573a6e

Please sign in to comment.