It looks like a ip2longsigned int is returned on a 32-bit OS , and an unsigned int is returned on a 64-bit OS.
My application runs on 10 servers, and some of them are 32 bits, and some of them are 64 bits, so I need them all to work the same.
There is a trick in the PHP documentation to make this result always unsigned, but since I got my database already populated with data, I want it to be signed.
So how to change unsigned int into signed in PHP?
source
share