From: [EMAIL PROTECTED] Operating system: SunOS PHP version: 4.0.5 PHP Bug Type: *Math Functions Bug description: Problem with bitwise & operator and big integers If I use the bitwise "&" operator with an integer (bit 32 is set), the result is wrong. <? /* ** result is wrong (1)*/ $a = 4294901760; /* 11111111111111110000000000000000 */ $b = 1; /* 00000000000000000000000000000001 */ $c = $a & $b; printf("$c = $a & $b<BR>"); /* ** result is ok (0) */ $a = 2147450880; /* 1111111111111111000000000000000 */ $b = 1; /* 0000000000000000000000000000001 */ $c = $a & $b; printf("$c = $a & $b<BR>"); ?> -- Edit Bug report at: http://bugs.php.net/?id=11519&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]