Doc #65366 [NEW]: DE/ip2long(): 64/32-bit difference not documented

From: Date: Wed, 31 Jul 2013 09:25:39 +0000
Subject: Doc #65366 [NEW]: DE/ip2long(): 64/32-bit difference not documented
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10129@lists.php.net to get a copy of this message
From:             pinkgothic at gmail dot com
Operating system: -
PHP version:      Irrelevant
Package:          Translation problem
Bug Type:         Documentation Problem
Bug description:DE/ip2long(): 64/32-bit difference not documented

Description:
------------
"Because PHP's integer type is signed, and many IP addresses will result in

negative integers on 32-bit architectures, you need to use the "%u"
formatter of 
sprintf() or printf() to get the string representation of the unsigned IP 
address."

...is part of the current English documentation of ip2long() and mentions
the 
difference between architectures (see also Bug #54338). The German
translation, 
however, says:

"Da der Integertyp von PHP vorzeichenbehaftet ist und viele IP-Adressen in
einen 
negativen Integerwert aufgelöst werden, sollten Sie die
Formatierungsangabe "%u" 
für sprintf() und printf() verwenden, um eine Stringrepräsentation der 
vorzeichenlosen IP-Adresse zu erhalten."

...which makes no mention of the 32-bit/64-bit difference (but is otherwise
a 
correct translation). Could the distinction be added?


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65366&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=65366&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=65366&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=65366&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65366&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65366&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65366&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65366&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65366&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65366&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65366&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=65366&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=65366&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65366&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65366&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65366&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65366&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65366&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65366&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65366&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65366&r=mysqlcfg



Thread (3 messages)

« previous php.doc.bugs (#10129) next »