Re: PHP 4.0 Bug #7248 Updated: ip2long returns negative values

From: Date: Mon, 23 Oct 2000 12:12:23 +0000
Subject: Re: PHP 4.0 Bug #7248 Updated: ip2long returns negative values
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35870@lists.php.net to get a copy of this message
hi Monday, October 23, 2000, 10:52:46 AM: > Previous Comments: > --------------------------------------------------------------------------- > [2000-10-16 11:20:12] spambox@yourc.pl > Do a > ip2long('195.117.249.162'); > and it returns > -1015678558 > --------------------------------------------------------------------------- > It is meant to do so, PHP long values are signed. > Well, ok, but shouldn't it return a value, which is usable as an internet address? For example, if I insert 'http://1015678558/' into the browser, shouldn't it show me the '195.117.249.162' website? > Full Bug description available at: http://bugs.php.net/?id=7248 -- m.tatarynowicz yourc s.a.

« previous php.dev (#35870) next »