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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info at charuru dot moe
New email:
PHP Version: OS:

 

 [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 22:01:29 2024 UTC