ug... i have no idea really...
[PHPIPManager.git] / unittest / ip6tolong.php
1 <?php
2
3 require_once "../lib/lib.php";
4
5 $ori_str = "2003:1:2:3::1";
6 $str = ip6ToLongStr($ori_str);
7
8 echo "str: $ori_str, $str\n";
9
10 $ori_str = "2003:1:2:3:23:34:23:1";
11 $str = ip6ToLongStr($ori_str);
12
13 echo "str: $ori_str, $str\n";
14
15 if(function_exists("gmp_add")) echo "gmp_add exists\n";
16 if(function_exists("bc_sub")) echo "bc_sub exists\n";
17
18
19 ?>