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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spambox at yourc dot pl
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 02:03:34 2021 UTC