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
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: thekid@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 00:01:31 2025 UTC