php-src/ext/standard/tests/network/gethostbyname_basic003.phpt

18 lines
477 B
Plaintext
Raw Normal View History

--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===