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