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

From: Date: Thu, 08 Aug 2002 20:09:58 +0000
Subject: #18816 [Opn]: results of ip2long and crc32 differ on different os/architectures
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16320@lists.php.net to get a copy of this message
ID: 18816 Updated by: nohn@php.net Reported By: nohn@php.net Status: Open Bug Type: Unknown/Other Function Operating System: Linux, Tru64 PHP Version: 4CVS-2002-08-08 New Comment: Ahh... Please note that I may not be reachable in the next days for questions, but you may use http://www.testdrive.compaq.com/ to verify this Previous Comments: ------------------------------------------------------------------------ [2002-08-08 16:08:45] nohn@php.net 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 this bug report at http://bugs.php.net/?id=18816&edit=1

« previous php.bugs (#16320) next »