Re: Bug #15296: ftp_getresp()'s bug when ftp server returns multiple response code

From: Date: Wed, 30 Jan 2002 10:53:59 +0000
Subject: Re: Bug #15296: ftp_getresp()'s bug when ftp server returns multiple response code
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-78537@lists.php.net to get a copy of this message
Hi I agree, and post patch in this mail. Thanks. --- ftp.c-orig Wed Jan 9 22:35:14 2002 +++ ftp.c Wed Jan 29 22:30:19 2002 @@ -918,6 +918,8 @@ (ftp->inbuf[2] - '0'); memmove(ftp->inbuf, ftp->inbuf + 4, FTP_BUFSIZE - 4); + if (ftp->extra) + ftp->extra -= 4; return 1; } Markus Fischer wrote in <20020130102015.GA12833@guru.josefine.at>: > This sounds like a good idea. Can you please post a unified > diff against latest CVS to php-dev@ ? > > - Markus

« previous php.dev (#78537) next »