summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/gethostbynamel_basic1.phpt
blob: 94fd2a01ff73b1f1f99be903dfa8b40df159d15d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Test gethostbynamel() function : basic functionality
--FILE--
<?php
/* Prototype  : array gethostbynamel  ( string $hostname  )
 * Description: Get a list of IPv4 addresses corresponding to a given Internet host name
 * Source code: ext/standard/dns.c
*/

echo "*** Testing gethostbynamel() : basic functionality ***\n";
var_dump(gethostbynamel("localhost"));
?>
===DONE===
--EXPECTF--
*** Testing gethostbynamel() : basic functionality ***
array(%d) {
  %a
}
===DONE===