Re: Bug #1191: nslookup broke in fsockopen on old systems

From: Date: Mon, 01 Mar 1999 14:41:23 +0000
Subject: Re: Bug #1191: nslookup broke in fsockopen on old systems
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4389@lists.php.net to get a copy of this message
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@schell.de wrote: > On Mon, Mar 01, 1999 at 06:58:43AM -0000, timothy@ametro.net wrote: > > From: timothy@ametro.net > > 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@schell.de > | for PGP public key > -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4389) next »