Edit report at https://bugs.php.net/bug.php?id=61256&edit=1
ID: 61256 Updated by: pierr...@php.net Reported by: balancer at balancer dot ru Summary: Hex numbers parsing error -Status: Open +Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: Gentoo Linux PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. This bug is the same as #61095 which was fixed. Previous Comments: ------------------------------------------------------------------------ [2012-03-02 23:15:08] balancer at balancer dot ru Description: ------------ Incorrect parsing 0xNN numbers with operators Test script: --------------- $ php -r 'var_dump(0x0+1);' int(2) $ php -r 'var_dump(0x0 + 1);' int(1) $ php -r 'var_dump(0x0+10);' int(26) $ php -r 'var_dump(0x0 + 10);' int(10) $ php -r 'var_dump(0x0-10);' int(-26) $ php -r 'var_dump(0x0 - 10);' int(-10) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61256&edit=1