ID: 13835 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Network related Operating System: FreeBSD 3.x, 4.x PHP Version: 4.0.6 New Comment:
Works fins for me on Linux/FreeBSD 4.4 with PHP 4.1.0RC1 and PHP 4.2.0dev. So it seems to be fixed. Can you try the RC from www.php.net/~ssb/php-4.1.0RC1.tar.gz. If it is not fixed there, please reopen this report. Derick Previous Comments: ------------------------------------------------------------------------ [2001-10-26 06:21:06] [EMAIL PROTECTED] When I use long2ip or binary arithmetics it's does not work correctly. e.g long2ip(3813441731) results 128.0.0.0 where this result should be 227.76.128.195 when I'm trying to write analog of this function using binary arithmetics: $ip = 3813441731; $a = ($ip >> 24) & 0xff; $b = ($ip >>16) & 0xff; $c = ($ip >> 8) & 0xff; $d = $ip & 0xff; print "$a.$b.$c.$d"; ------------- I have same result: 128.0.0.0 What I do wrong? I've try this on FreeBSD 3.5-STABLE, FreeBSD 4.2-RC2 and FreeBSD 4.4-RELEASE ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13835&edit=1 -- PHP Development 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]