private function expandIPv6InFilters(&$ip) {
        if ($this->isIPv6($ip)) {
            if (($pos = strpos($ip, '/')) !== false) {
                // The IPv6 has a routing prefix attached to it
                $mask = substr($ip, $pos);
                $ip = $this->expandIPv6(substr($ip, 0, $pos)) . $mask;
            } else {
                // Regular IPv6 address
                $ip = $this->expandIPv6($ip);
            }
        }
    }
private function expandIPv6InFilters(&$ip) {
        if ($this->isIPv6($ip)) {
            if (($pos = strpos($ip, '/')) !== false) {
                // The IPv6 has a routing prefix attached to it
                $mask = substr($ip, $pos);
                $ip = $this->expandIPv6(substr($ip, 0, $pos)) . $mask;
            } else {
                // Regular IPv6 address
                $ip = $this->expandIPv6($ip);
            }
        }
    }
private function expandIPv6InFilters ( & $ ip ) { if ( $ this -> isIPv6 ( $ ip ) ) { if ( ( $ pos = strpos ( $ ip , '/' ) ) !== false ) { // The IPv6 has a routing prefix attached to it $ mask = substr ( $ ip , $ pos ) ; $ ip = $ this -> expandIPv6 ( substr ( $ ip , 0 , $ pos ) ) . $ mask ; } else { // Regular IPv6 address $ ip = $ this -> expandIPv6 ( $ ip ) ; } } }
Expand all IPv6 addresses in a filter

@param string $ip An IP address that might be expanded
Expand all IPv6 addresses in a filter