php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7248 ip2long returns negative values
Submitted: 2000-10-16 11:20 UTC Modified: 2000-10-23 04:52 UTC
From: spambox at yourc dot pl Assigned:
Status: Closed Package: Network related
PHP Version: 4.0.3pl1 OS: linux (slackware 7)
Private report: No CVE-ID: None
 [2000-10-16 11:20 UTC] spambox at yourc dot pl
Do a 

ip2long('195.117.249.162');

and it returns

-1015678558

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-23 04:52 UTC] stas@php.net
It is meant to do so, PHP long values are signed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 16:01:35 2024 UTC