projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef5f3ac
)
fix compat with latest php
author
Alan
<alan@roojs.com>
Fri, 15 Jul 2022 04:12:57 +0000
(12:12 +0800)
committer
Alan
<alan@roojs.com>
Fri, 15 Jul 2022 04:12:57 +0000
(12:12 +0800)
OLE.php
patch
|
blob
|
history
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;
}