php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44915 ip2long
Submitted: 2008-05-05 12:06 UTC Modified: 2008-05-06 19:50 UTC
From: sascha at rizzt dot kicks-ass dot org Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.2.6 OS: Linux 2.6.24.3-34.fc8 #1
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:
37 - 5 = ?
Subscribe to this entry?

 
 [2008-05-05 12:06 UTC] sascha at rizzt dot kicks-ass dot org
Description:
------------
Since quite a while i see ips like 127.255.255.255

the ips in the logfile are correct, but ip2long doesn't convert it correctly.

i cannot reproduce the bug with a simple script.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-05 12:25 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.
 [2008-05-06 19:50 UTC] sascha at rizzt dot kicks-ass dot org
mysql issue, the new version doesnt convert unsigned to signed anymore and cuts the value
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 02:01:29 2024 UTC