#18816 [NEW]: results of ip2long and crc32 differ on different os/architectures

From: Date: Thu, 08 Aug 2002 20:08:46 +0000
Subject: #18816 [NEW]: results of ip2long and crc32 differ on different os/architectures
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16319@lists.php.net to get a copy of this message
From: nohn@php.net Operating system: Linux, Tru64 PHP version: 4CVS-2002-08-08 PHP Bug Type: Unknown/Other Function Bug description: results of ip2long and crc32 differ on different os/architectures Following Script produces this output: $ip = "192.168.0.1"; echo("$ip\n"); echo(ip2long($ip)); ---- On Debian/i386 (AMD K6): 192.168.0.1 -1062731775 ---- On Compaq Tru64 (ALpha EV68): 192.168.0.1 3232235521 =========================================================================================================== Following Script produces this output: $text = "Der schnelle braune Fuchs springt über den blöden Hund."; echo "$text\n"; echo(crc32($text)); ---- On Debian/i386 (AMD K6): Der schnelle braune Fuchs springt über den blöden Hund. -2050320634 ---- On Compaq Tru64 (Alpha EV68): Der schnelle braune Fuchs springt über den blöden Hund. 1367081892 -- Edit bug report at http://bugs.php.net/?id=18816&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18816&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18816&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18816&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18816&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18816&r=support Expected behavior: http://bugs.php.net/fix.php?id=18816&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18816&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18816&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18816&r=globals

« previous php.bugs (#16319) next »