Note Submitter: mitch <> aka-root.com
----
Bug found in versions php4.4.0-4.4.2 (no newest in 4.4.x
when i write this)
if domain does not exist, gethostbyname retourn local server
ip, in 4.3.x branch in this case retourn equal input string.
u can check it by this simple code
<?
$str = 'any-not-valid-domain.com';
$ip4 = gethostbyname($str);
print "[$str] [$ip4]<br>";
?>
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|