public function __construct($initial_value) {
for($i = 0; $i < 8; $i++) {
- $ip6[$i] = 0;
+ $this->ip6[$i] = 0;
}
if($initial_value == null) {
//nothing
$i += 3;
}
}
+ $this->addr_is_ipv6 = true;
}
}
$this->ip6[$j++] = hexdec($block);
}
}
+ $this->addr_is_ipv6 = true;
}
public function parseIPv4($ipv4) {
$this->ip6[6] |= intval($ipv4blocks[1]);
$this->ip6[7] = intval($ipv4blocks[2]) << 8;
$this->ip6[7] |= intval($ipv4blocks[3]);
+ $this->addr_is_ipv6 = false;
}
public function isIPv6() {