mirror of
https://github.com/php/php-src.git
synced 2024-10-16 05:52:36 +00:00
18 lines
477 B
Plaintext
18 lines
477 B
Plaintext
|
--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===
|