1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/standard/tests/network/gethostbyname_basic003.phpt

18 lines
477 B
PHP

--TEST--
Test gethostbyname() function : basic functionality
--FILE--
<?php
/* Prototype : string gethostbyname ( string $hostname )
* Description: Get the IPv4 address corresponding to a given Internet host name
* Source code: ext/standard/dns.c
*/
echo "*** Testing gethostbyname() : basic functionality ***\n";
echo gethostbyname("localhost")."\n";
?>
===DONE===
--EXPECT--
*** Testing gethostbyname() : basic functionality ***
127.0.0.1
===DONE===