Date: 09/26/01
- Next message: derick <email protected>: "Re: [PHP-DEV] I desperately need help!!!!!!!!!!!!!1"
- Previous message: gordonl <email protected>: "[PHP-DEV] Bug #13445: odbc_execute gives "SQL data type out of range" error for store procedure"
- In reply to: Markus Fischer: "Re: [PHP-DEV] [PATCH] fix gethostbyname() to return false when hostname not resolved"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Sep 26, 2001 at 01:17:55AM +0200, Markus Fischer wrote:
> On Tue, Sep 25, 2001 at 01:56:28PM -0700, Jim Winstead wrote :
> > here's a patch to fix bug #13423. think anyone is relying on the
> > current (vastly lame, imho) behavior?
>
> Because this was the behaviour for a long time now its obvious
> that this will break all scripts ;-)
>
> But of course it should be changed. Better earlier than later
> 'til never.
Yes, I'm afraid existing scripts will do something like:
$address = gethostbyname($hostname);
if ($address == $hostname) {
echo "Error....";
...
}
ok...
I think perhaps the reason for current behavior is that gethostbyname()
on some systems may not return the IP address when called with an IP
address, the current PHP code would hide that bug. Well, just a theory
I don't like the current code either.
Stig
-- 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: derick <email protected>: "Re: [PHP-DEV] I desperately need help!!!!!!!!!!!!!1"
- Previous message: gordonl <email protected>: "[PHP-DEV] Bug #13445: odbc_execute gives "SQL data type out of range" error for store procedure"
- In reply to: Markus Fischer: "Re: [PHP-DEV] [PATCH] fix gethostbyname() to return false when hostname not resolved"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

