Doc #79103 [Opn->Ver]: Hexadecimal to decimal conversion deprecation notice missing
| From: | cmb@php.net | Date: | Sun, 12 Jan 2020 10:03:15 +0000 |
| Subject: | Doc #79103 [Opn->Ver]: Hexadecimal to decimal conversion deprecation notice missing | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17194@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: Open
+Status: Verified
Type: Documentation Problem
-Package: Documentation problem
+Package: *Math Functions
Operating System: Irrelevant
PHP Version: 7.4.1
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[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