php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79103 Hexadecimal to decimal conversion deprecation notice missing
Submitted: 2020-01-11 21:16 UTC Modified: 2020-01-12 10:04 UTC
From: info at charuru dot moe Assigned: cmb (profile)
Status: Closed Package: *Math Functions
PHP Version: 7.4.1 OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 50 = ?
Subscribe to this entry?

 
 [2020-01-11 21:16 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-12 10:03 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: *Math Functions -Assigned To: +Assigned To: cmb
 [2020-01-12 10:04 UTC] 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-12 10:04 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2020-01-12 10:05 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e7e0c67b0b4a81345978ab40441cef19388899fb
Log: Fix #79103: Hexadecimal to decimal conversion deprecation notice missing
 [2020-01-12 14:54 UTC] mumumu@php.net
Automatic comment from SVN on behalf of mumumu
Revision: http://svn.php.net/viewvc/?view=revision&revision=348888
Log: Fix #79103: Hexadecimal to decimal conversion deprecation notice missing

Bug: https://bugs.php.net/79103 (Verified) Hexadecimal to decimal conversion deprecation notice missing
 [2020-02-07 06:04 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=bdc5950b1ba4a2d2235b833393a34daac89f8bbe
Log: Fix #79103: Hexadecimal to decimal conversion deprecation notice missing
 [2020-12-30 11:59 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=f4ea87f7b47c9d6eeef5d23f9ced42b0bf2a4e8b
Log: Fix #79103: Hexadecimal to decimal conversion deprecation notice missing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC