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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC