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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC