|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-27 12:25 UTC] sniper@php.net
[2001-06-27 15:14 UTC] Pascal dot Dufour at cdt dot eu dot int
[2001-06-28 13:10 UTC] sniper@php.net
[2002-02-17 07:47 UTC] tcurdt at dff dot st
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 21:00:01 2025 UTC |
I have a problem with bitwise operator: The following script: <? printf("%08x (should be 05CDEA00)<BR>", (0x05CDEA00 & 0xFFFFFFFF)); printf("%08x (should be FFFFFFFF)<BR>", (0x05CDEA00 | 0xFFFFFFFF)); ?> displays: 00000000 (should be 05CDEA00) -7a321600 (should be FFFFFFFF) It seems that the bitwise 'and' does not work at all, it always returns 0. I do no understant the result of the bitwise 'or', and why it is displayed prefixed by a minus sign. I have read the documentation and I think these are bugs... I hope I have not misunderstood the doc. Pascal.