Kevin Brooks <[EMAIL PROTECTED]> wrote:
> I completely agree with you.  I just think we're talking about 2 different
> things.  I agree that the php_gethostbyname call should NOT return the
> hostname if it fails.  My problem is that it is failing for no good
> reason, as it seems others have reported.  My server is a production 4.1
> BSDI system with perfectly functioning resolver libraries.

your example works fine for me. it sounds like you may have some sort
of local configuration problem. does gethostbyname() ever work? does
it only fail on particular domain names? php's gethostbyname() is a
very thin wrapper over the C gethostbyname(), so it seems extremely
unlikely that any failure to resolve is going to be in the php code.

jim

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to