Hehe yeah.
(thanks for the reply on the bug report)
Actually, that work around is also going to fail, but not due to a bug in $longip.
$longip strips the zeropadding from the input ip, so 01.01.01.01 != $longip($longip(01.01.01.01))
But anyway, because of the bugs, it doesn't matter anymore, he'll have to use other methods (and there are multiple) to check for a valid ip.
Greets