Doc #54338 [Opn->Csd]: docs don't mention that ip2long on 64-bit doesn't return negative values
| From: | aharvey@php.net | Date: | Tue, 22 Mar 2011 02:50:32 +0000 |
| Subject: | Doc #54338 [Opn->Csd]: docs don't mention that ip2long on 64-bit doesn't return negative values | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6118@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54338&edit=1
ID: 54338
Updated by: aharvey@php.net
Reported by: gasper at kozak dot si
Summary: docs don't mention that ip2long on 64-bit doesn't
return negative values
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2011-03-22 03:50:15] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=309517
Log: Fix doc bug #54338 (docs don't mention that ip2long on 64-bit
doesn't return
negative values).
------------------------------------------------------------------------
[2011-03-21 16:13:49] gasper at kozak dot si
Description:
------------
Documentation for http://www.php.net/ip2long explicitly
states in Notes
that
"many IP addresses will result in negative integers". However, this
isn't the
case with 64-bit PHP, and I think this is important enough to be
mentioned there.
This isn't a problem with negative numbers, just with missing
documentation.
The test script shows an example that will return a negative value on
32-bit, and
non-negative on 64-bit PHP.
Test script:
---------------
echo ip2long('192.0.0.0');
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54338&edit=1