fix compat with latest php
authorAlan <alan@roojs.com>
Fri, 15 Jul 2022 04:12:57 +0000 (12:12 +0800)
committerAlan <alan@roojs.com>
Fri, 15 Jul 2022 04:12:57 +0000 (12:12 +0800)
OLE.php

diff --git a/OLE.php b/OLE.php
index 8d72cca..ccf6530 100755 (executable)
--- a/OLE.php
+++ b/OLE.php
@@ -519,12 +519,12 @@ class OLE extends PEAR
         $res = '';
 
         for ($i = 0; $i < 4; $i++) {
-            $hex = $low_part % 0x100;
+            $hex = ((int)$low_part) % 0x100;
             $res .= pack('c', $hex);
             $low_part /= 0x100;
         }
         for ($i = 0; $i < 4; $i++) {
-            $hex = $high_part % 0x100;
+            $hex = ((int)$high_part) % 0x100;
             $res .= pack('c', $hex);
             $high_part /= 0x100;
         }