Fixed PHP 8.1 compatibilities problems for include/Excel/*

This commit is contained in:
Paolo
2022-09-06 15:38:42 +02:00
parent 7f64f5c29f
commit fd649c49c8
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -306,7 +306,7 @@ class OLE extends PEAR
{
$rawname = '';
for ($i = 0; $i < strlen($ascii); $i++) {
$rawname .= $ascii{$i}."\x00";
$rawname .= $ascii[$i]."\x00";
}
return $rawname;
}
@@ -378,7 +378,7 @@ class OLE extends PEAR
$high_part = 0;
for ($i=0; $i<4; $i++)
{
$al = unpack('C', $string{(7 - $i)});
$al = unpack('C', $string[(7 - $i)]);
$high_part += $al[''];
if ($i < 3) {
$high_part *= 0x100;
@@ -387,7 +387,7 @@ class OLE extends PEAR
$low_part = 0;
for ($i=4; $i<8; $i++)
{
$al = unpack('C', $string{(7 - $i)});
$al = unpack('C', $string[(7 - $i)]);
$low_part += $al[''];
if ($i < 7) {
$low_part *= 0x100;