|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-27 09:54 UTC] tony2001@php.net
[2006-12-05 01:00 UTC] php-bugs at lists dot php dot net
[2007-02-08 16:39 UTC] netex at 163 dot com
[2007-03-28 10:30 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 03:00:01 2025 UTC |
Description: ------------ Expression evaluation violates intuition, see the code: Reproduce code: --------------- <? $a = -1109046485 & 0xffffffff; $b = -1129749216 & 0xffffffff; printf("%x + %x = %x\n",$a,$b,$a+$b); printf("%x\n", 0xbde54b2b + 0xbca96520); ?> Expected result: ---------------- X-Powered-By: PHP/5.2.0 Content-type: text/html bde54b2b + bca96520 = 7a8eb04b 7a8eb04b Actual result: -------------- X-Powered-By: PHP/5.2.0 Content-type: text/html bde54b2b + bca96520 = 80000000 7a8eb04b