Edit report at https://bugs.php.net/bug.php?id=61095&edit=1

 ID:                 61095
 Comment by:         anon at anon dot anon
 Reported by:        tomek at przeslij dot pl
 Summary:            PHP can't add hex numbers
 Status:             Open
 Type:               Bug
 Package:            Math related
 Operating System:   Windows XP
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

That is fan-tastic!

http://i.imgur.com/uPC2b.gif


Previous Comments:
------------------------------------------------------------------------
[2012-02-15 15:32:20] tomek at przeslij dot pl

Description:
------------
These echoes 4:
echo (0x00+2);
echo (0x00+0x02);
but they should echo 2! This echoes 2 as expected:
echo (0x00 + 2);

Test script:
---------------
echo (0x00+2);

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

Actual result:
--------------
4


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61095&edit=1

Reply via email to