You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experience the problem in PHP 7.4.33 that the match array is not initialized and populated. It keeps the state and value it has before calling expect_expectl, no matter how or if it was declared and defined before the call. Beside that expect_expectl works as intended, recognizes all mateches and returns the corresponding values.
When initializing it as in array, it once worked, but after the last weekend it stopped working again and shows the same irrational behaviour as above.
$match=[];
expect_expectl ($stream, array (
array ("Username: ", "USERNAME"), //TELNET USER NAMEarray ("password: ", "PASSWORD"), // SSH is asking for passwordarray ("Password: ", "PASSWORD1"), // SSH is asking for passwordarray ("yes/no)?", "YESNO"), // SSH is asking whether to store the host entryarray ("# ", "SHELL", EXP_EXACT) //We've got the shell!
), $match);
The text was updated successfully, but these errors were encountered:
lachbaer
pushed a commit
to lachbaer/pecl-expect
that referenced
this issue
Feb 28, 2023
I experience the problem in PHP 7.4.33 that the match array is not initialized and populated. It keeps the state and value it has before calling
expect_expectl
, no matter how or if it was declared and defined before the call. Beside thatexpect_expectl
works as intended, recognizes all mateches and returns the corresponding values.When initializing it as in array, it once worked, but after the last weekend it stopped working again and shows the same irrational behaviour as above.
The text was updated successfully, but these errors were encountered: