[PHP] Broken ip2long and long2ip?

2001-05-20 Thread Sean Cazzell
It appears that the integer type being used by these functions is not able to store the entire 32 bits (4 bytes). It can only handle up to 31 bits - my guess is the type is signed when it should be unsigned. In any case,I'm running PHP 4.0.5 on Linux 2.4.3 on an x86 machine. I would appreciate

RE: [PHP] Broken ip2long and long2ip?

2001-05-20 Thread Jorg Krause
From: Sean Cazzell [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 8:41 AM [...] It appears that the integer type being used by these functions is not able to store the entire 32 bits (4 bytes). It can only handle up to 31 bits - my guess is the type is signed when it should be