phpseclib: Error: Uninitialized string offset 0 \vendor\phpseclib\phpseclib\phpseclib\Net\SSH2.php on line 1110
Getting the following error .Please help!
PHP Notice: Uninitialized string offset: 0 in \vendor\phpseclib\phpseclib\phpseclib\Net\SSH2.php on line 1110
Notice: Uninitialized string offset: 0 in E:\xampp\htdocs\symfony\vendor\phpseclib\phpseclib\phpseclib\Net\SSH2.php on line 1110 PHP Notice: Expected SSH_MSG_KEXINIT in \vendor\phpseclib\phpseclib\phpseclib\Net\SSH2.php on line 1111
Notice: Expected SSH_MSG_KEXINIT in \vendor\phpseclib\phpseclib\phpseclib\Net\SSH2.php on line 1111
After diggin into the code found that _get_binary_packet() function called on line 1104 in SSH2.php returns empty string which is causing this error.
Please help what is the cause of this error.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (11 by maintainers)
More info: this bug shows up with version 2.0.5, no such problem with 2.0.4. 2.0.5 with the SSH2.php file from (https://github.com/terrafrost/phpseclib/tree/2.0-send-kex-before-rcpt) works as well.