[wp-trac] [WordPress Trac] #10993: Auto upgrade fails SSH when the file is empty.

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 22 22:33:24 UTC 2009


#10993: Auto upgrade fails SSH when the file is empty.
-----------------------------+----------------------------------------------
 Reporter:  ShaneF           |        Owner:  dd32     
     Type:  defect (bug)     |       Status:  closed   
 Priority:  highest omg bbq  |    Milestone:           
Component:  Filesystem       |      Version:  2.8.4    
 Severity:  blocker          |   Resolution:  duplicate
 Keywords:                   |  
-----------------------------+----------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch =>
  * status:  new => closed
  * resolution:  => duplicate
  * milestone:  2.9 =>


Comment:

 This has been fixed in trunk for awhile now..

 http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/class-wp-
 filesystem-ssh2.php#L165

 2.8.x doesnt include false !==, as it is, the function is returning the
 number of bytes written under 2.8, whereas, its returning a bool under
 trunk.

 See [11818] Fix class-wp-filesystem-ssh2 put_contents() for empty files,
 props lostinlafayette dd32, fixes #10604

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


More information about the wp-trac mailing list