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

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

> > 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);

I tried sizeof(ftp->pasvaddr), but no effect... (same errormsg)
Could this be a wsock32 version difference between the win95/98 and
NT/2000 versions?

> ? 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.

No problem, I want to get the problem solved...
I'll look into it some more tomorrow, I have some old ftp-code of my own
lying around somewhere, I'll check if this has problems as well on
win95/98 (although a previous version of php worked fine on win98 at
least).

I'll try the official 4.1.0 as well, and I probably have some older
versions on my disk too, that might narrow it down a bit...

I'll report again tomorrow :)

CU, Mc!



Thread (11 messages)

« previous php.dev (#79285) next »