diff --git a/Net/IPv6.php b/Net/IPv6.php index e485886..543be00 100644 --- a/Net/IPv6.php +++ b/Net/IPv6.php @@ -848,10 +848,10 @@ function SplitV64($ip, $uncompress = true) return array("", $ip); } - $ip{$pos} = '_'; + $ip[$pos] = '_'; $ipPart = explode('_', $ip); - if ($ip{$pos-1} === ":") { + if ($ip[$pos-1] === ":") { $ipPart[0] .= ":"; }