[wp-trac] [WordPress Trac] #10522: timeout for ftp connections as a constant in config.php

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 7 11:22:31 UTC 2009


#10522: timeout for ftp connections as a constant in config.php
--------------------------+-------------------------------------------------
 Reporter:  ntm           |       Owner:  dd32                   
     Type:  defect (bug)  |      Status:  accepted               
 Priority:  normal        |   Milestone:  2.9                    
Component:  Filesystem    |     Version:  2.8.2                  
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by ntm):

 I have put 10522.diff into a WP 2.8.2 and tested it a little bit and on
 the first look, there is a problem:
 FS_CONNECT_TIMEOUT is not defined in class-wp-filesystem-ftpext.php and
 FS_TIMEOUT is only defined in this file because of the lines

 {{{
 if ( ! defined('FS_TIMEOUT') )
    define('FS_TIMEOUT', 240);
 }}}

 And if the constant is not defined the constant name is given to
 ftp_connect or ftp_ssl_connect as a string which causes a PHP error.

 (I will probably test more in the next days.)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10522#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list