Permalink
Browse files

Merge pull request #119 from vincentbernat/fix/compress-serialized

Fix compression of serialized objects.
  • Loading branch information...
mkoppanen committed Jan 9, 2014
2 parents 0eae1de + 391d0c1 commit 03d224485b2af9d63fc21601705e897a8046ebb9
View
@@ -151,6 +151,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
<file role='test' name='testdata.res'/>
<file role='test' name='config.inc'/>
<file role='test' name='sasl_basic.phpt'/>
+ <file role='test' name='serializer_php.phpt'/>
+ <file role='test' name='set_comp_below_factor.phpt'/>
</dir>
</dir>
</contents>
View
@@ -3266,7 +3266,7 @@ char *php_memc_zval_to_payload(zval *value, size_t *payload_len, uint32_t *flags
/* If we have compression flag, compress the value */
if (MEMC_VAL_HAS_FLAG(*flags, MEMC_VAL_COMPRESSED)) {
/* status */
- *payload_len = Z_STRLEN_P(value);
+ *payload_len = pl_len;
payload = s_compress_value (compression_type, pl, payload_len, flags TSRMLS_CC);
}

0 comments on commit 03d2244

Please sign in to comment.