php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/outlet/pusat/images/customer/php1/tests/function/ |
| files >> //var/www/html/outlet/pusat/images/customer/php1/tests/function/inet_ntop.phpt |
--TEST--
Function -- inet_ntop
--FILE--
<?php
require_once 'PHP/Compat/Function/inet_ntop.php';
$adds = array(
'127.0.0.1' => '7f000001',
'192.232.131.222' => 'c0e883de',
'::1' => '00000000000000000000000000000001',
'2001:260:0:10::1' => '20010260000000100000000000000001',
'fe80::200:4cff:fe43:172f' => 'fe8000000000000002004cfffe43172f'
);
foreach ($adds as $k => $v) {
echo "\ntesting: $k\n ";
var_dump(php_compat_inet_ntop(pack('H*', $v)));
}
?>
--EXPECT--
testing: 127.0.0.1
string(9) "127.0.0.1"
testing: 192.232.131.222
string(15) "192.232.131.222"
testing: ::1
string(3) "::1"
testing: 2001:260:0:10::1
string(16) "2001:260:0:10::1"
testing: fe80::200:4cff:fe43:172f
string(24) "fe80::200:4cff:fe43:172f"
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`