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

From: Date: Sun, 22 Mar 2015 20:17:25 +0000
Subject: Doc #65366 [Opn->Csd]: [DE] ip2long(): 64/32-bit difference not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12038@lists.php.net to get a copy of this message
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)

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