Return to gethostbyname_basic003.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / network |
1.1 misho 1: --TEST-- 2: Test gethostbyname() function : basic functionality 3: --FILE-- 4: <?php 5: /* Prototype : string gethostbyname ( string $hostname ) 6: * Description: Get the IPv4 address corresponding to a given Internet host name 7: * Source code: ext/standard/dns.c 8: */ 9: 10: echo "*** Testing gethostbyname() : basic functionality ***\n"; 11: 12: echo gethostbyname("localhost")."\n"; 13: ?> 14: ===DONE=== 15: --EXPECT-- 16: *** Testing gethostbyname() : basic functionality *** 17: 127.0.0.1 18: ===DONE===