Here is the code that helped me getting it working. I injected it to /usr/share/php/Archive/Tar.php.
<code>
/**
* Missing zlib functions.
*/
function gzopen($filename, $mode, $use_include_path = 0) {
return gzopen64($filename, $mode, $use_include_path);
};
function gzseek($zp, $offset, $whence = SEEK_SET) {
return gzseek64($zp, $offset, $whence);
}
function gztell($zp) {
return gztell64($zp);
}
</code>
Here is the code that helped me getting it working. I injected it to /usr/share/ php/Archive/ Tar.php.
<code>
/**
* Missing zlib functions.
*/
function gzopen($filename, $mode, $use_include_path = 0) {
return gzopen64($filename, $mode, $use_include_path);
};
function gzseek($zp, $offset, $whence = SEEK_SET) {
return gzseek64($zp, $offset, $whence);
}
function gztell($zp) {
return gztell64($zp);
}
</code>