Fixed feof() detection, removed unnecessary sleep() in channel shutdown, and simplified session detection.
Note: All users are recommended to use libssh2 >= 0.10 as it contains important bugfixes (particularly in the SFTP layer).

Minor fixes including some added error handling and more discriptive ./configure message.
Users of PHP/SSH2 are recommended to upgrade their installation of libssh2 to version 0.6
whether or not upgrading the PHP/SSH2 extension.

Added port forwarding support (requires libssh2-0.5) and
modified ssh2_methods_negotiated() to work with modified libssh2 prototype.
Note: Version PECL/ssh2 0.4.1 is incompatable with libssh2 >= 0.5
Both should be upgraded in tandem, though PECL/ssh2 0.5 will work with libssh2 >= 0.4