Skip to content

Commit 5f28025

Browse files
committed
This will lead unexpected behavior if zval is an interned string
1 parent 14581c4 commit 5f28025

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: php_memcached.c

-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,6 @@ zend_string *s_zval_to_payload(php_memc_object_t *intern, zval *value, uint32_t
10191019
}
10201020
break;
10211021
}
1022-
zend_string_forget_hash_val(payload);
10231022

10241023
/* turn off compression for values below the threshold */
10251024
if (ZSTR_LEN(payload) == 0 || ZSTR_LEN(payload) < MEMC_G(compression_threshold)) {

0 commit comments

Comments
 (0)