Doc #65366 [Opn->Csd]: [DE] ip2long(): 64/32-bit difference not documented
Edit report at https://bugs.php.net/bug.php?id=65366&edit=1
ID: 65366
Updated by: cmb@php.net
Reported by: pinkgothic at gmail dot com
Summary: [DE] ip2long(): 64/32-bit difference not documented
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Translation problem
Operating System: -
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
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:
------------------------------------------------------------------------
[2015-03-22 20:17:10] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=336145
Log: fixes #65366
------------------------------------------------------------------------
[2014-09-26 03:42:56] marc at ermshaus dot org
A translation that is (kinda) equivalent to the current English original:
âDa der Integertyp von PHP vorzeichenbehaftet ist und auf 32-Bit-Architekturen viele
IP-Adressen in einen negativen Integerwert aufgelöst werden, sollten Sie dort die
Formatierungsangabe "%u" für sprintf() und printf() verwenden, um eine
Stringrepräsentation der vorzeichenlosen IP-Adresse zu erhalten.â
Small change, only the âauf 32-Bit-Architekturenâ part and âdortâ have to be
added.
------------------------------------------------------------------------
[2013-07-31 09:25:38] pinkgothic at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=65366&edit=1
Thread (3 messages)