Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am having issues getting the correct value out of fboauth_fbid_load. My facebook id is somewhere in the neighborhood of 100 trillion yet the function keeps returning the value 2,147,483,647 for my user.
That function is type casting the facebook id as an integer but I am running on a 32-bit system and the largest integer it can handle is the value it's returning. If I remove the type casting, then everything works just fine.
Comment | File | Size | Author |
---|---|---|---|
#1 | fboauth_typecast-1764258-1.patch | 448 bytes | kleinmp |
Comments
Comment #1
kleinmp CreditAttribution: kleinmp commentedI'm adding this patch so it's obvious how I fixed it.
Comment #2
quicksketchThanks @kleinmp! I can't believe I made such a silly assumption (especially after marking the column BIGINT in the database). A fellow Lullabot wrote up an article on exactly this topic years ago: http://www.lullabot.com/articles/drupocalypse-now-or-dangerous-integer-h...
I've committed your patch as-is. Thanks!