php-ssh
php-ssh copied to clipboard
PHP Notice: Undefined offset: 1
PHP Notice: Undefined offset: 1 in /www/symdep.crm.roboforex.com/vendor/herzult/php-ssh/src/Ssh/Exec.php on line 31
What are you trying to achieve with the library? Seems there is an issue with the result's parsing.
https://github.com/Herzult/php-ssh/blob/master/src/Ssh/Exec.php#L31
Seems there is an issue with the result's parsing. Yes
@TheRatG Can you please provide the content of $output
and other info like: Operating System,Type of command,... ?
We could fix the access to a key before checking exists regardless.
it will be cool :smile:
Had this same issue, checked what was in $output
: empty string.
Adding this fixed the issue for me: https://github.com/Herzult/php-ssh/pull/48
This particular issue happens to me too when connecting to an appliance which doesn't have a full shell and doesn't have the echo
command, therefor it cannot echo the returncode which is expected by the class Exec
Had the same issue on remote host with fish installed. Is this package working only on POSIX shell?