Doc #79103 [Ver->Csd]: Hexadecimal to decimal conversion deprecation notice missing
| From: | cmb@php.net | Date: | Sun, 12 Jan 2020 10:04:33 +0000 |
| Subject: | Doc #79103 [Ver->Csd]: Hexadecimal to decimal conversion deprecation notice missing | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17195@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79103&edit=1
ID: 79103
Updated by: cmb@php.net
Reported by: info at charuru dot moe
Summary: Hexadecimal to decimal conversion deprecation notice
missing
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: *Math Functions
Operating System: Irrelevant
PHP Version: 7.4.1
Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-01-12 10:04:22] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348878
Log: Fix #79103: Hexadecimal to decimal conversion deprecation notice missing
------------------------------------------------------------------------
[2020-01-11 21:16:55] info at charuru dot moe
Description:
------------
Since PHP 7.4, the ignoring of invalid hexadecimal characters is deprecated in "hexdec".
However there's no changelog about this change on the function page on php.net and such the
page still says that the function ignores invalid characters (that means there's no deprecation
about this functionality!).
A changelog and notice/warning must be added to the manual page to indicate this deprecation.
If other functions were updated in the same regard as "hexdec", these pages must be
updated as well.
Test script:
---------------
echo hexdec('-2');
Expected result:
----------------
2
Actual result:
--------------
Deprecated: Invalid characters passed for attempted conversion, these have been ignored
2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79103&edit=1