blob: 274301a2368b5689b377cb142a9f7928b802bb9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
gethostbyname() function - basic return valid ip address test
--CREDITS--
"Sylvain R." <sracine@phpquebec.org>
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
if (getenv("SKIP_ONLINE_TESTS")) die("skip test requiring internet connection");
?>
--FILE--
<?php
$ip = gethostbyname("www.php.net");
var_dump((bool) ip2long($ip));
?>
--EXPECT--
bool(true)
|