Date: 09/25/01
- Next message: Stig Sæther Bakken: "Re: [PHP-DEV] Re: 403 on www.php.net (fwd)"
- Previous message: Jim Winstead: "Re: [PHP-DEV] [PATCH] fix gethostbyname() to return false when hostname not resolved"
- In reply to: Kevin Brooks: "Re: [PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr."
- Next in thread: brooks <email protected>: "[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Kevin Brooks <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: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Stig Sæther Bakken: "Re: [PHP-DEV] Re: 403 on www.php.net (fwd)"
- Previous message: Jim Winstead: "Re: [PHP-DEV] [PATCH] fix gethostbyname() to return false when hostname not resolved"
- In reply to: Kevin Brooks: "Re: [PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr."
- Next in thread: brooks <email protected>: "[PHP-DEV] Bug #13443 Updated: gethostbyname returns the name not the IP addr."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

