From:             [EMAIL PROTECTED]
Operating system: windows
PHP version:      4.3.0
PHP Bug Type:     Network related
Bug description:  gethostbyname can resolve not existing hosts ;)

Hi,

try this:
echo(gethostbyname("gmx.de5"))
output is: 62.75.134.200

in fact, this domain doesn't exist, only gmx.de exists. 
('host gmx.de5' on the server reports an error)
this behavior is bad when for example using getbyhostname to validate an
email address, because an email send to [EMAIL PROTECTED] would surely not
arrive...
-- 
Edit bug report at http://bugs.php.net/?id=21487&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21487&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21487&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21487&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21487&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21487&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21487&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21487&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21487&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21487&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21487&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21487&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21487&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21487&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21487&r=gnused

Reply via email to