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