php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69130 Adding hex strings
Submitted: 2015-02-26 22:49 UTC Modified: 2015-02-26 23:01 UTC
From: thekid@php.net Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: master-Git-2015-02-26 (snap) OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-26 22:49 UTC] thekid@php.net
Description:
------------
Adding hex strings does not work as before

Test script:
---------------
var_dump("0x1" + 1);

Expected result:
----------------
2

Actual result:
--------------
1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-26 22:52 UTC] requinix@php.net
-Status: Open +Status: Wont fix
 [2015-02-26 22:52 UTC] requinix@php.net
Yup. They killed that intentionally.
https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings
 [2015-02-26 23:01 UTC] thekid@php.net
> They killed that intentionally.

Waa, sorry for the noise. I missed that. Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC