This is a very basic (yet threaded) wrapper around
libbzip2.
I give no guarantees that this works nor that you won't throw up if you start looking at the code. You have been warned.
This extension registers as the '
bzip2' library.
Natives:
PHP Code:
BZ2_DecompressFile(String:inFile[], String:outFile[], BZ2Callback:cb, any:data = 0);
BZ2_CompressFile(String:inFile[], String:outFile[], iCompressionLevel, BZ2Callback:cb, any:data = 0);
Callback: The same for both compression and decompression
PHP Code:
public(BZ_Error:iError, String:inFile[], String:outFile[], any:data)
Source, changelog and binaries
are on
github.
Direct link to the include file:
here.
__________________