ID:               19050
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         FTP related
 Operating System: Linux Debian Woody (2.4.18)
 PHP Version:      4.2.2
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:
------------------------------------------------------------------------

[2002-08-26 12:09:00] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

Some ftp problems were fixed recently. Please give it a shot.


------------------------------------------------------------------------

[2002-08-26 12:04:47] [EMAIL PROTECTED]

It turned out to be ftp_* bug, sorry.
So:
To solve the error with ftp_get i've rewriten the code to use fopen
with ftp:// filename. It's a workaround, not a FIX!
To solve the error with ftp_nlist, i've used the code posted bellow
(the one which retries the listing)
I've no idea why has the buffer size change worked (65530->3000) but
temporary it solved the problem (my first bug report), but then more
calls were made to the reader function and the hanging began again.
The proftpd developer team says that it's not their problem, I'll write
them something nice ...
And sorry for the misleading ... to all of you.

------------------------------------------------------------------------

[2002-08-26 06:29:46] [EMAIL PROTECTED]

Is this a problem with fgets or is the problem with ftp_get? (there's a
big difference!).
Can you put these two lines before your fopen line:

echo "Downloaded file from server\n";
flush();

------------------------------------------------------------------------

[2002-08-26 04:02:54] [EMAIL PROTECTED]

The -d 3 doesn't solve the problem with ftp_rawlist, but the following
code works for it:
$i=0;
  while (($a=ftp_rawlist($this->ftp_fd,$dir)) === false) {
       $i++;
        if ($i > 5) { die("Error"); }
 }

------------------------------------------------------------------------

[2002-08-26 03:33:35] [EMAIL PROTECTED]

#13400 is a workaround for this bug, but I think proftp dev team should
know about this thing ...

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19050

-- 
Edit this bug report at http://bugs.php.net/?id=19050&edit=1

Reply via email to