MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768

Codes here !

Moderators: egami, macek, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Fri Oct 12, 2012 9:50 am

is the $id->flags==32768? i think it might be and that would explain your results.

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Fri Oct 12, 2012 9:57 am

the way that a bitwise and comparison works, is by taking the binary representation of 2 numbers, and totalling their common bits. for example,

Code: Select all

<?php echo 2&3; ?>
returns 2 because this comparison takes place:
10
11
--
10
no matter what you change the second number to, you'll never get a greater number from the comparison than 2, because it is impossible to have a common bit of greater value than one of your numbers. I hope that helps a bit.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests