note 61653 deleted from function.gethostbynamel by bjori
| From: | bjori@php.net | Date: | Sat, 30 Sep 2006 00:11:58 +0000 |
| Subject: | note 61653 deleted from function.gethostbynamel by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117868@lists.php.net to get a copy of this message | ||
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>";
?>