/**
* Determine if a given integer IPv4 address is in a given CIDR network
- * @deprecated Use IP::isAddressInRange
+ * @deprecated Use IP::isInRange
*/
function isAddressInRange( $addr, $range ) {
- return IP::isAddressInRange( $addr, $range );
+ return IP::isInRange( $addr, $range );
}
function initFromRow( $row )
* @param $range The range to check the given address against.
* @return bool Whether or not the given address is in the given range.
*/
- function isInRange( $addr, $range ) {
+ public static function isInRange( $addr, $range ) {
$unsignedIP = IP::toUnsigned($addr);
list( $start, $end ) = IP::parseRange($range);