Hello,

I use XTea for encrypting credit card data. My current live site is
running on FC1/PHP 4.3.8 and the script works great.

However, I'm setting up a new machine with FC3/PHP 4.3.10 and I've
encountered a problem with the exact same code (tarred up and moved
over). The install was very basic... standard web server options, used
YUM to upgrade PHP, et al.

It appears that the new box is not converting hex to integers
correctly. Example...

<? $delta  = (integer) 0x9E3779B9;
echo $delta; ?>

Result from FC1 box: -1640531527
Result from another FC1 box: -1640531527 (identical)
Result from FC3 box: 2147483647

I tried upgraded to PHP 5.0.3, but get the same values.

I'm not even sure where to start looking... any ideas?

Ron

Reply via email to