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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC