diff --git a/phpseclib/Crypt/AES.php b/phpseclib/Crypt/AES.php index 4ebf07e5..616c362e 100644 --- a/phpseclib/Crypt/AES.php +++ b/phpseclib/Crypt/AES.php @@ -66,7 +66,7 @@ * Include Crypt_Rijndael */ if (!class_exists('Crypt_Rijndael')) { - require_once 'Rijndael.php'; + require_once('Rijndael.php'); } /**#@+ diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index 23448570..1527b0dc 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; @@ -201,7 +201,7 @@ class Net_SFTP_Stream { if (isset(self::$instances[$host][$port][$user][(string) $pass])) { $this->sftp = self::$instances[$host][$port][$user][(string) $pass]; } else { - $this->sftp = new Net_SFTP($host, isset($port) ? $port : 22); + $this->sftp = new Net_SFTP($host, $port); if (isset($this->notification) && is_callable($this->notification)) { /* if !is_callable($this->notification) we could do this: