diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index 23448570..9197f2e8 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -153,7 +153,7 @@ class Net_SFTP_Stream { */ function _parse_path($path) { - extract(parse_url($path)); + extract(parse_url($path) + array('port' => 22)); if (!isset($host)) { return false;