blob: d7df11ec764e5484c76c5723610987db88296b99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--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";
?>
--EXPECT--
*** Testing gethostbyname() : basic functionality ***
127.0.0.1
|