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  


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