ID:               16366
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Math related
 Operating System: WinXP
 PHP Version:      4.1.2
 New Comment:

AFAIK, PHP stores any number from MySQL as a string, until you access
it as a number. If you try to do some math on that number, that will
probably not work as expected. Bitshifting won't work either.


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

[2002-03-31 11:48:25] [EMAIL PROTECTED]

echo (11>>34) produces "2"

Also PHP docs state that the max integer is "usually" 32 bits.  So what
is an unsigned bigint from mysql stored as, and can I use the bit shift
operator on it?


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


-- 
Edit this bug report at http://bugs.php.net/?id=16366&edit=1

Reply via email to