Bug #69572 [Opn->Nab]: Comparing hex numeric strings checks for type
| From: | nikic@php.net | Date: | Tue, 05 May 2015 11:39:31 +0000 |
| Subject: | Bug #69572 [Opn->Nab]: Comparing hex numeric strings checks for type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192483@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69572&edit=1
ID: 69572
Updated by: nikic@php.net
Reported by: bruno at skvorc dot me
Summary: Comparing hex numeric strings checks for type
-Status: Open
+Status: Not a bug
Type: Bug
Package: Unknown/Other Function
Operating System: Linux
PHP Version: master-Git-2015-05-05 (Git)
Block user comment: N
Private report: N
New Comment:
This is an intentional change, see https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings.
Previous Comments:
------------------------------------------------------------------------
[2015-05-05 10:17:24] bruno at skvorc dot me
Description:
------------
When comparing strings of hexadecimal numbers, the latest PHP 7 seems to be checking for type. It
does not do this for non-hex.
Test script:
---------------
http://3v4l.org/jjEJf
Expected result:
----------------
I expect results to be consistent with latest stable PHP and HHVM, i.e. all outputs in the above URL
to be true.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69572&edit=1