issue #1363: Fix crc32 for 32bit processors

This commit is contained in:
Ludovic Chopin
2021-05-30 20:19:02 +02:00
committed by Pierrick Le Gall
parent e2c219ed63
commit 3239296bf3
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -2677,7 +2677,7 @@
@fclose($v_file);
// ----- Calculate the CRC
$p_header['crc'] = @crc32($v_content);
$p_header['crc'] = @hash("crc32b", $v_content);
// ----- Look for no compression
if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) {
@@ -2715,7 +2715,7 @@
$v_content = $p_filedescr['content'];
// ----- Calculate the CRC
$p_header['crc'] = @crc32($v_content);
$p_header['crc'] = @hash("crc32b", $v_content);
// ----- Look for no compression
if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) {