mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
issue #1363: Fix crc32 for 32bit processors
This commit is contained in:
committed by
Pierrick Le Gall
parent
e2c219ed63
commit
3239296bf3
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user