php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69572 Comparing hex numeric strings checks for type
Submitted: 2015-05-05 10:17 UTC Modified: 2015-05-05 11:39 UTC
From: bruno at skvorc dot me Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: master-Git-2015-05-05 (Git) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bruno at skvorc dot me
New email:
PHP Version: OS:

 

 [2015-05-05 10:17 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-05 11:39 UTC] nikic@php.net
-Status: Open +Status: Not a bug
 [2015-05-05 11:39 UTC] nikic@php.net
This is an intentional change, see https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 07:01:31 2024 UTC