Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] IP search bug when ip >= 128.0.0.0
#6
From memory, PHP's "int" datatype is just a signed 32 bit integer. In MySQL, the "int" type is also a 32 bit integer, signed by default.
Thus, from memory, PHP's ip2long() function returns a signed integer.

Thus using positive numbers won't work.
I haven't tested things, so I'm just putting what I know forward.


Messages In This Thread
[F] IP search bug when ip >= 128.0.0.0 - by Choli - 2008-09-08, 10:22 PM
RE: [F] IP search bug when ip >= 128.0.0.0 - by Yumi - 2008-09-08, 11:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)