|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-02-15 15:32 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Correct behavior for me in 5.3.3-7+squeeze3 $ php -r "var_dump(0x02+0x00);" int(2) $ php -r "var_dump(0x02+0);" int(2) $ php -r "var_dump('0x02'+0);" int(2)