Re: RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h

From: Date: Tue, 05 Feb 2002 18:10:00 +0000
Subject: Re: RE: [PHP-CVS] cvs: php4 /ext/ftp ftp.c ftp.h
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79259@lists.php.net to get a copy of this message
Hi

On Tue, Feb 05, 2002 at 05:55:45PM +0100, Marc Boeren wrote:
> 
> > Hi Stig (and others, Wez for instance),
> > 
> > The patch below seems to have broken the ftp_get function (I used
> > ftp_get($conn_id, $local_file, $remote_file, FTP_BINARY)) in Win95 and
> > Win98, it now displays a warning:
> > Warning: Type set to I. in .... on line .... and returns false.
> > It works OK on WinNT and Win2000.
> 
> I looked into it a bit, and I get a windows error for the connect()
> function:
> 
> WSAEFAULT:
>  The name or the namelen parameter is not a valid part of the user address
>  space, the namelen parameter is too small, or the name parameter contains
>  incorrect address format for the associated address family.
> 
> 
> Any pointers?

Thanks, this helps a lot (I think). Does it work if you in line
1053 or so, replace
size = sizeof(php_sockaddr_storage);
with
size = sizeof(struct sockaddr_in);
? If it does, could you perhaps try to determine the maximum value?
I would try to add 1 to the size above, and also 256, 128 and 64.
You've done a good job already, I understand if you don't want to
check all this.

Stig


Thread (11 messages)

« previous php.dev (#79259) next »