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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 + 39 = ?
Subscribe to this entry?

 
 [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: Fri Apr 26 13:01:28 2024 UTC