|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-09-09 09:04 UTC] andi at cvs dot php dot net
[1999-09-09 09:05 UTC] andi at cvs dot php dot net
[1999-09-09 09:05 UTC] andi at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 19:00:01 2025 UTC |
<? $n = 2211674498; $a = $n >> 24; $b = ($n >> 16) & 255; $c = ($n >> 8) & 255; $d = $n & 255; echo "<p>$a.$b.$c.$d</p>\n"; ?> It should output 131.211.121.130 (my IP-number) but outputs -128.0.0.0 instead. If I set $n to 211674498, it works fine. Config options and compiler (options) used: # ./configure --with-apxs=/usr/bin/apxs --with-mysql --with-zlib --disable-static --disable-debug --prefix=/usr --sysconfdir=/etc # gcc -O6 -mpentium -fomit-frame-pointer -pipe -w -v Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.1/specs gcc version 2.95.1 19990816 (release)