Broken ip2long and long2ip?
| From: | Sean Cazzell | Date: | Sun, 20 May 2001 06:40:42 +0000 |
| Subject: | Broken ip2long and long2ip? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53588@lists.php.net to get a copy of this message | ||
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 it if a someone can verify this before I submit it as a
bug.
Regards,
Sean Cazzell