|
The problem is due to different versions of PHP and the way PHP handles bitwise operations.
I've had a few different issues on different machines. I've successfully ported the php script to a machine running FC4-64bit, and PHP 5.x. It required making custom shl and shr functions. For some reason, SHRs were adding a 1 to the LSB. Yeah, sounds weird, but it was.. anyhow it's fixed.
However, I'm having one hell of a time attempting to port it to a i386 machine running FC3 and PHP 4.3.11.
The problem occurs when PHP attempts to "sliently" convert integers into floating point numbers when the integer becomes to large to be held in an integer placeholder. That's all fine, but what happens when you attempt to perform an XOR on the floating point number? Well, all hell breaks lose in certain versions of PHP it seems.
I'm not sure if there is a setting somewhere, or if it's just due to the different versions of PHP and the way they handle the convertions between integer and float, but I intend to put a finger on it.
Anyone else have anything to add?
Bitlord
|