php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65366 [DE] ip2long(): 64/32-bit difference not documented
Submitted: 2013-07-31 09:25 UTC Modified: 2015-03-22 20:17 UTC
From: pinkgothic at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: -
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pinkgothic at gmail dot com
New email:
PHP Version: OS:

 

 [2013-07-31 09:25 UTC] 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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-06 12:33 UTC] yannick@php.net
-Summary: DE/ip2long(): 64/32-bit difference not documented +Summary: [DE] ip2long(): 64/32-bit difference not documented
 [2014-09-26 03:42 UTC] 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.
 [2015-03-22 20:17 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=336145
Log: fixes #65366
 [2015-03-22 20:17 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-03-22 20:17 UTC] cmb@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC