[wp-trac] [WordPress Trac] #35517: Work around PHP7 php-ssh2 breakage

WordPress Trac noreply at wordpress.org
Thu Oct 19 13:39:07 UTC 2017


#35517: Work around PHP7 php-ssh2 breakage
----------------------------+------------------------------
 Reporter:  dougal          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+------------------------------

Comment (by ralphm):

 I'm not entirely sure if this is the same problem, but I got upgrades
 using ssh2 to work with this patch:


 {{{
 --- a/wp-admin/includes/class-wp-filesystem-ssh2.php
 +++ b/wp-admin/includes/class-wp-filesystem-ssh2.php
 @@ -185,7 +185,7 @@
                 if ( '/' === $path ) {
                         $path = '/./';
                 }
 -               return 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim(
 $path, '/' );
 +               return 'ssh2.sftp://' . intval($this->sftp_link) . '/' .
 ltrim( $path, '/' );
         }

         /**
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35517#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list