Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Notice: Undefined offset: 1 #45

Open
TheRatG opened this issue Jun 9, 2015 · 8 comments
Open

PHP Notice: Undefined offset: 1 #45

TheRatG opened this issue Jun 9, 2015 · 8 comments

Comments

@TheRatG
Copy link

TheRatG commented Jun 9, 2015

PHP Notice: Undefined offset: 1 in /www/symdep.crm.roboforex.com/vendor/herzult/php-ssh/src/Ssh/Exec.php on line 31

@Herzult
Copy link
Owner

Herzult commented Jun 9, 2015

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

@TheRatG
Copy link
Author

TheRatG commented Jun 9, 2015

Seems there is an issue with the result's parsing.
Yes

@TheRatG TheRatG closed this as completed Jun 9, 2015
@TheRatG TheRatG reopened this Jun 9, 2015
@h4cc
Copy link
Collaborator

h4cc commented Jun 9, 2015

@TheRatG Can you please provide the content of $output and other info like: Operating System,Type of command,... ?

@camspiers
Copy link
Contributor

We could fix the access to a key before checking exists regardless.

@TheRatG
Copy link
Author

TheRatG commented Jun 10, 2015

it will be cool 😄

@cabloo
Copy link

cabloo commented Jul 14, 2015

Had this same issue, checked what was in $output: empty string.

Adding this fixed the issue for me: #48

@syphernl
Copy link

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

@petrenkorf
Copy link

Had the same issue on remote host with fish installed. Is this package working only on POSIX shell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants