Unverified Commit 68c70d3b authored by Florent Morselli's avatar Florent Morselli Committed by GitHub
Browse files

Revert #107 (#127)

This PR reverts the changes from #107.
It should solve #126 / #125
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -124,7 +124,13 @@ abstract class OTP implements OTPInterface
*/
private function intToByteString(int $int): string
{
return pack('J', $int);
$result = [];
while (0 !== $int) {
$result[] = chr($int & 0xFF);
$int >>= 8;
}
return str_pad(implode(array_reverse($result)), 8, "\000", STR_PAD_LEFT);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment