ID: 11519
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Math Functions
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

See this bug report for reason why this is bogus report:

http://www.php.net/bugs.php?id=7755&edit=1

Also I suggest you READ the instructions about submitting
bug reports BEFORE you submit one.



Previous Comments:
---------------------------------------------------------------------------

[2001-06-17 10:16:43] [EMAIL PROTECTED]
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>");
?>


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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11519&edit=2


-- 
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]

Reply via email to