- Timestamp:
- 04/15/2020 11:52:38 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php
r47219 r47584 7 7 * @contrib http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/ - Installation Notes 8 8 * 9 * Comp lie libssh2 (Note: Only 0.14 is officaly working with PHP 5.2.6+ right now, But many users have found the latest versions work)9 * Compile libssh2 (Note: Only 0.14 is officaly working with PHP 5.2.6+ right now, But many users have found the latest versions work) 10 10 * 11 11 * cd /usr/src … … 27 27 * Check phpinfo() streams to confirm that: ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp exist. 28 28 * 29 * Note: as of WordPress 2.8, This utilises the PHP5+ function 'stream_get_contents'29 * Note: As of WordPress 2.8, this utilises the PHP5+ function `stream_get_contents()`. 30 30 * 31 31 * @since 2.7.0 … … 68 68 if ( ! extension_loaded( 'ssh2' ) ) { 69 69 $this->errors->add( 'no_ssh2_ext', __( 'The ssh2 PHP extension is not available' ) ); 70 return;71 }72 if ( ! function_exists( 'stream_get_contents' ) ) {73 $this->errors->add(74 'ssh2_php_requirement',75 sprintf(76 /* translators: %s: stream_get_contents() */77 __( 'The ssh2 PHP extension is available, however, we require the PHP5 function %s' ),78 '<code>stream_get_contents()</code>'79 )80 );81 70 return; 82 71 }
Note: See TracChangeset
for help on using the changeset viewer.