Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions php_memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,9 +1907,8 @@ static void php_memc_setMulti_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_ke
str_key = zend_string_init(tmp_key, tmp_len, 0);
}

if (!s_memc_write_zval (intern, MEMC_OP_SET, server_key, str_key, value, expiration)) {
php_error_docref(NULL, E_WARNING, "failed to set key %s", ZSTR_VAL(str_key));
}
/* If this failed to write a value, intern stores the error for the return value */
s_memc_write_zval (intern, MEMC_OP_SET, server_key, str_key, value, expiration);

if (!skey) {
zend_string_release (str_key);
Expand Down
1 change: 0 additions & 1 deletion tests/experimental/setmulti_badserialize.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@ try {
var_dump($m->getByKey('kef', 'foo'));

--EXPECT--
Memcached::setMultiByKey(): failed to set key foo
1234
int(10)