php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72841 [DE] is_numeric does not accept hex, binary in PHP 7+
Submitted: 2016-08-15 10:54 UTC Modified: 2016-08-15 11:58 UTC
From: requinix@php.net 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: requinix@php.net
New email:
PHP Version: OS:

 

 [2016-08-15 10:54 UTC] requinix@php.net
Description:
------------
Re: bug #72839

"Hexadezimale (z.B. 0xf4c3b00c), binäre (z.B. 0b10100111001) und oktale Schreibweise (z.B. 0777) sind ebenfalls erlaubt aber nur ohne Vorzeichen, Dezimalstellen und Exponentialpart."

Additionally, octal should not be mentioned as is_numeric only handles decimal and will not refuse an invalid octal string like 0789.

http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.strings.hex
https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-15 11:56 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Translation problem +Package: Variables related -Assigned To: +Assigned To: cmb
 [2016-08-15 11:56 UTC] cmb@php.net
Indeed, the German translation of is_numeric() is not
up-to-date[1].

> ...it occurs to me that all these new bugs will be about
> removing text, so even a non-speaker could fix them all. Oh
> well.

That may be possible, but that might only partially sync the
translation with the English original, what might later be
confusing for a translator who wants to actually sync with EN.

Therefore I would suggest not to touch the translations, unless
there's an urgent need (such as security related documentation).
An alternative might be too remove the out-dated page from the
respective translation, so the doc build system will use the
English original.

Note also that there are tools[2] which can (actually, should) be
used by the translators to notice out-dated translations.

[1] <http://svn.php.net/viewvc/phpdoc/en/trunk/reference/var/functions/is-numeric.xml?r1=329674&r2=339702>
[2] <http://doc.php.net/revcheck.php?p=files&lang=de>
    <https://edit.php.net/>
 [2016-08-15 11:56 UTC] cmb@php.net
-Package: Variables related +Package: Translation problem
 [2016-08-15 11:58 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=339884
Log: Fix #72841: [DE] is_numeric does not accept hex, binary in PHP 7+

Actually, sync with EN
 [2016-08-15 11:58 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2020-02-07 09:56 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=1337ac2282e4bea7ee394b3c6d9428ed1440f20a
Log: Fix #72841: [DE] is_numeric does not accept hex, binary in PHP 7+
 [2020-12-30 11:15 UTC] nikic@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=19c8dea8213128afac06f8b42df7fc697852aa2d
Log: Fix #72841: [DE] is_numeric does not accept hex, binary in PHP 7+
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 02:01:35 2024 UTC