List Info

Thread: note 61653 added to function.gethostbynamel




note 61653 added to function.gethostbynamel
user name
2006-02-08 13:23:09
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>";
?>
----
Server IP: 195.114.128.28
Probable Submitter: 85.202.136.144
----
Manual Page -- http://www.php.net/manual/en/function.gethostbynamel.php

Edit        -- http://master.php.net/manage/user-notes.php?action=
edit+61653
Delete: added to the manual -- htt
p://master.php.net/manage/user-notes.php?action=delete+61653
&report=yes&reason=added+to+the+manual
Delete: bad code            -- http://master.
php.net/manage/user-notes.php?action=delete+61653&report
=yes&reason=bad+code
Delete: spam                -- http://master.php.
net/manage/user-notes.php?action=delete+61653&report=yes
&reason=spam
Delete: useless             -- http://master.p
hp.net/manage/user-notes.php?action=delete+61653&report=
yes&reason=useless
Delete: non-english         -- http://mast
er.php.net/manage/user-notes.php?action=delete+61653&rep
ort=yes&reason=non-english
Delete: already in docs     -- http://
master.php.net/manage/user-notes.php?action=delete+61653&
;report=yes&reason=already+in+docs
Delete: other reasons       -- http://master.php.net/manage/user-
notes.php?action=delete+61653&report=yes
Reject      -- http://master.php.net/manage/user-
notes.php?action=reject+61653&report=yes
Search      -- http://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

note 61653 deleted from function.gethostbynamel by bjori
user name
2006-09-30 00:11:58
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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )