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"); 8?> 9--FILE-- 10<?php 11 $ip = gethostbyname("www.php.net"); 12 var_dump((bool) ip2long($ip)); 13?> 14--EXPECT-- 15bool(true) 16