I am looking for a php only workaround to do binary arithmatic on large numbers (ip
addresses represented as integer). Works fine for small numbers (smaller than signed
long), but ip addresses are unsigned long.
The following yeilds incorrect results:
echo 2473474821 & 4;
The correct answer is NOT 0;
I now have to call an external perl program to do the calc. I have a bug logged with
php development, but the answer I got is that this will not work till you can have
unsigned longs in php. I am using php 4.0.6
Please copy me on replies. TIA
--
Richard Ellerbrock
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]