npub12z…ruj80 on Nostr: Pro tip: pear/Math_BigInteger's native #PHP implementation is bugged for certain ...
Pro tip: pear/Math_BigInteger's native #PHP implementation is bugged for certain values, such that it'll at the very least stringify things wrong. phpseclib's implementation OTOH is *not* bugged and is a drop-in for my use case, so...yeah, use that one instead, since the Pear package is abandonware at this point.
Things broke with 50510988650892635772999999979803115519 and 50510988650892635772999999979803115520.
Published at
2023-12-29 23:09:58Event JSON
{
"id": "c2239eaa0fbff7667af79386948688ffeb45c896a96bd64767c38e09f7c4a519",
"pubkey": "5081050f34023da38b6365caa76e716ed43bb8af562ef9ba57fc128c9a922d7e",
"created_at": 1703891398,
"kind": 1,
"tags": [
[
"t",
"php"
],
[
"proxy",
"https://phpc.social/users/ian/statuses/111666226721804923",
"activitypub"
]
],
"content": "Pro tip: pear/Math_BigInteger's native #PHP implementation is bugged for certain values, such that it'll at the very least stringify things wrong. phpseclib's implementation OTOH is *not* bugged and is a drop-in for my use case, so...yeah, use that one instead, since the Pear package is abandonware at this point.\n\nThings broke with 50510988650892635772999999979803115519 and 50510988650892635772999999979803115520.",
"sig": "cfe8c029c106aabe6d7d707799e10a70b3b8b1428284f996ba2f4caeb85297823268f9d3f8fa0e28bb4a0aca113582da4e3041dad5172e3aaa9abb20b586de18"
}