Repeated: Accept gzopen64() too as a test of the zlib extension load. Ok.

skala
Ivan Tcholakov 16 years ago
parent 514484dc21
commit 0b4e7a7d4d
  1. 2
      main/inc/lib/pclzip/pclzip.lib.php
  2. 9
      main/inc/lib/pclzip/readme_dokeos.txt

@ -199,7 +199,7 @@
//--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, 'PclZip::PclZip', "zipname=$p_zipname");
// ----- Tests the zlib
if (!function_exists('gzopen'))
if (!function_exists('gzopen') && !function_exists('gzopen64'))
{
//--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 1, "zlib extension seems to be missing");
die('Abort '.basename(__FILE__).' : Missing zlib extensions');

@ -28,3 +28,12 @@ Bug correction : When adding files with full windows path (drive letter)
PclZip is now working. Before, if the drive letter is not the default
path, PclZip was not able to add the file.
Additional changes: gzopen64() - 20090930
------------------------------
An additional change has been applied to check on the zlib extension by probing
gzopen64() as well as gzopen() in the PclZip() function. This is due to a
recent change in the Zlib library, whereby the gzopen() function has been
updated and moved to gzopen64().
This problem has been reported to PhpConcept (editors of PclZip).

Loading…
Cancel
Save