Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #7102 Usage of ftp_nb_put() in FTP::put() is incredibly slow
Submitted: 2006-03-12 19:04 UTC
From: hw at cho dot de Assigned: jorrit
Status: Closed Package: Net_FTP (version CVS)
PHP Version: 4.4.2 OS: Linux
Roadmaps: 1.4.0a1    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2007-12-22 19:02 UTC
Package:
Bug Type:
Summary:
From: hw at cho dot de
New email:
PHP Version: Package Version: OS:

 

 [2006-03-12 19:04 UTC] hw at cho dot de (hans)
Description: ------------ PHP's own ftp_nb_put() does render uploads incredibly slow. Omitting it results in multiples faster upload. Test script: --------------- function put($local_file, $remote_file, $overwrite = false, $mode = null){ [...] if (0 && function_exists('ftp_nb_put')){ [...] }

Comments

 [2007-03-06 18:29 UTC] joey
I created a patch that will allow a flag to determine if the user would like to use non-blocking or blocking methods. This is an added flag parameter on the get and put functions. The flag uses a null to keep backwards compatibility. PHP 4: http://www.pasteserver.net/400 PHP 5: http://www.pasteserver.net/399
 [2007-12-22 19:02 UTC] jorrit (Jorrit Schippers)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.