Edit report at http://bugs.php.net/bug.php?id=51920&edit=1
ID: 51920 Comment by: artificial at iol dot ie Reported by: olafvdspek at gmail dot com Summary: ip2long result depends on platform Status: Bogus Type: Bug Package: Network related Operating System: Debian x64 PHP Version: 5.3.2 New Comment: This is why I peruse bugs.php.net... for the lulz when somebody submits a bogus bug and makes themself look stupid. Previous Comments: ------------------------------------------------------------------------ [2010-05-27 09:41:35] olafvdspek at gmail dot com Like I said before, I know what signed and unsigned shorts, ints, longs and long longs are. ------------------------------------------------------------------------ [2010-05-27 08:25:49] m...@php.net Please read up on that topic and stop complaining about nothing. You may start here or anywhere else: http://en.wikipedia.org/wiki/Integer_%28computer_science%29 ------------------------------------------------------------------------ [2010-05-26 23:28:15] olafvdspek at gmail dot com Then just return the negative value. ------------------------------------------------------------------------ [2010-05-26 23:26:23] johan...@php.net This would be a different binary representation, which breaks binary math, which people often do with IP addresses. ------------------------------------------------------------------------ [2010-05-26 17:16:53] olafvdspek at gmail dot com Returning -107373295 on x64 would make it consistent with x86. But people might prefer 3221234342, in which case it could be returned as a string. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51920 -- Edit this bug report at http://bugs.php.net/bug.php?id=51920&edit=1