Doc #79103 [NEW]: Hexadecimal to decimal conversion deprecation notice missing

From: Date: Sat, 11 Jan 2020 21:16:55 +0000
Subject: Doc #79103 [NEW]: Hexadecimal to decimal conversion deprecation notice missing
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17193@lists.php.net to get a copy of this message
From:             info at charuru dot moe
Operating system: Irrelevant
PHP version:      7.4.1
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:Hexadecimal to decimal conversion deprecation notice missing

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 bug report at https://bugs.php.net/bug.php?id=79103&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79103&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79103&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79103&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79103&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79103&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79103&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79103&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79103&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79103&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79103&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79103&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79103&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79103&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79103&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79103&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79103&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79103&r=mysqlcfg


Thread (3 messages)

« previous php.doc.bugs (#17193) next »