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

WordPress Trac noreply at wordpress.org
Mon Jan 18 20:46:24 UTC 2016


#35517: Work around PHP7 php-ssh2 breakage
----------------------------+-----------------------------
 Reporter:  dougal          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Filesystem API  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 There is an updated php-ssh2 package available for PHP7, but it currently
 breaks the WordPress updater functionality for `class-wp-filesystem-
 ssh2.php`. The root cause seems to be that it has not correctly
 implemented the PHP stream wrappers for the `stat()` call, and any
 dependent functions such as `is_file()`, `is_dir()`, `file_exists()`, etc.

 However, the `ssh2_sftp_stat()` function does work, and we can deduce the
 other information from it.

 I've filed a bug against the php-ssh2 extension
 (https://bugs.php.net/bug.php?id=71376), but I wondered if using
 `ssh2_sftp_stat()` might be better, in general, than depending on the PHP
 stream wrapper functionality.

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


More information about the wp-trac mailing list