Doc #54338 [NEW]: docs don't mention that ip2long on 64-bit doesn't return negative values
| From: | gasper at kozak dot si | Date: | Mon, 21 Mar 2011 15:13:51 +0000 |
| Subject: | Doc #54338 [NEW]: docs don't mention that ip2long on 64-bit doesn't return negative values | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6115@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:docs don't mention that ip2long on 64-bit doesn't return negative values
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 bug report at http://bugs.php.net/bug.php?id=54338&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54338&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54338&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54338&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54338&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54338&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54338&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54338&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54338&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54338&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54338&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54338&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54338&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54338&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54338&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54338&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54338&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54338&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54338&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54338&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54338&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54338&r=mysqlcfg