Bug #61740 [Ver->Csd]: base_convert skips over out-of-range or unknown characters
| From: | nikic@php.net | Date: | Thu, 11 Jul 2019 20:34:28 +0000 |
| Subject: | Bug #61740 [Ver->Csd]: base_convert skips over out-of-range or unknown characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221710@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61740&edit=1
ID: 61740
Updated by: nikic@php.net
Reported by: hholzgra@php.net
Summary: base_convert skips over out-of-range or unknown
characters
-Status: Verified
+Status: Closed
Type: Bug
Package: Math related
Operating System: linux
PHP Version: master-Git-2012-04-15 (Git)
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2019-07-11 20:23:49] Scott at exussum dot co dot uk
This has been fixed in PHP 7.4
------------------------------------------------------------------------
[2016-06-30 12:12:56] cmb@php.net
While fixing this issue is trivial (for instance, the attached
patch base-convert-notice would raise E_NOTICE, but continue
processing), it would cause BC break: I got 9 failing PHPTs and
maybe even worse, _php_math_basetozval() is declared as PHP_API.
------------------------------------------------------------------------
[2016-06-30 12:10:07] cmb@php.net
The following patch has been added/updated:
Patch Name: base-convert-notice
Revision: 1467288606
URL: https://bugs.php.net/patch-display.php?bug=61740&patch=base-convert-notice&revision=1467288606
------------------------------------------------------------------------
[2016-06-30 11:43:08] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339532
Log: Address #61740: base_convert skips over out-of-range or unknown characters
------------------------------------------------------------------------
[2016-06-30 11:35:46] cmb@php.net
Confirmed: <https://3v4l.org/kqOBk>. Apparently, *any*
invalid
characters in $number are silently ignored.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61740
--
Edit this bug report at https://bugs.php.net/bug.php?id=61740&edit=1