Re: [PHP-DEV] Bug #1191: nslookup broke in fsockopen on old systems From: Timothy Whitfield (timothy <email protected>)
Date: 03/01/99

Not really a code issue, more an OS issue I think. On slackware doing,

$fd=fsockopen("www.somewhere.com",80);

if(!$fd)
{
  echo "www.somewhere.com is not in /etc/hosts";
}

$fd=fsockopen("176.54.25.15",80); <--- made up ip

if(!$fd)
{
  echo " you will never see this echo";
}

But on Redhat, this would work either way.

Timothy

On Mon, 1 Mar 1999 sas <email protected> wrote:

> On Mon, Mar 01, 1999 at 06:58:43AM -0000, timothy <email protected> wrote:
> > From: timothy <email protected>
> > Operating system: linux 2.0.33
> > PHP version: 3.0 Latest CVS (01/03/1999)
> > PHP Bug Type: Misbehaving function
> > Bug description: nslookup broke in fsockopen on old systems
> >
> > Don't know if this has been fixed yet because this is actually cvs as of a
> > couple of nights ago, but this was not a problem in php 3.0.6.
> >
> > If you run fsockopen on an old slackware linux, the nslookup doesn't work,
> > but it will do the lookup if the name is in the hosts file. This seems to
> > me like several programs lately have had this problem in that redhat seems
> > to return dns differently than slackware. Maybe other byte order??? This
> > does not cause a problem on redhat 5.2 system.
> >
> > Anyways thought you guys might wanna know. If anyone out there has been
> > running my cybercash stuff and it has been sending weird error stuff back,
> > this is the reason. New versions of the code call this "unable to contact
> > credit processor"
>
> Do you have any code to demonstrate that effect? There were a couple of
> changes in this area which may or may not be the cause of your problem.
>
> --
>
> Regards,
>
> Sascha Schumann |
> Consultant | finger sas <email protected>
> | for PGP public key
>

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>