change lz4compress etc. to lz4_compress for php compatibility
commitc918bd9eb04e554d5dbfb42c0f923d35e156df81
authorPaul Tarjan <ptarjan@fb.com>
Fri, 18 Jul 2014 22:53:10 +0000 (18 15:53 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Fri, 18 Jul 2014 23:00:18 +0000 (18 16:00 -0700)
tree94e98de5640420dd433fe578aa0d8da1f9a17e84
parentc94a284cb56ff7eb6fa3af5a5989fba00521f7ee
change lz4compress etc. to lz4_compress for php compatibility

Summary: The php implementation of lz4 compress/decompression has method names lz4_compress and lz4_decompress. HPHP supplies lz4compress and lz4decompress (without spaces). The causes an issue with compatibility of code when running on PHP or HHVM.

https://github.com/kjdev/php-ext-lz4
https://github.com/colinmollenhour/credis/issues/19
https://github.com/colinmollenhour/Cm_RedisSession/issues/31

This renames those methods to lz4_compress, lz4_decompress and lz4_hccompress

Closes https://github.com/facebook/hhvm/pull/3169

Reviewed By: @fredemmott

Differential Revision: D1435396
hphp/runtime/ext/zlib/ext_zlib.cpp
hphp/runtime/ext/zlib/ext_zlib.h
hphp/runtime/ext/zlib/ext_zlib.php
hphp/system/php.txt
hphp/system/php/zlib/ext_zlib.php [new file with mode: 0644]
hphp/test/slow/ext_zlib/ext_zlib.php