sibaz / pecl-expect Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
ldd on the built extension shows
/usr/local/lib/php/20170718/expect.so:
libexpect5.45.4.so => not found (0)
I have --with-expect=
set to /usr/local/lib
. The contents of which are:
ls -larths /usr/local/lib | grep expect
1 lrwxr-xr-x 1 root wheel 31B Dec 8 11:02 libexpect.so.1 -> expect5.45.4/libexpect5.45.4.so
1 lrwxr-xr-x 1 root wheel 14B Dec 8 11:02 libexpect.so -> libexpect.so.1
1 drwxr-xr-x 2 root wheel 4B Feb 4 19:17 expect5.45.4
Is this a problem with my expect package not making the correct symlink (or file name) or with php-expect not using the correct file name?
pecl install expect
pecl/expect requires PHP (version >= 4.0.0, version <= 7.99.99), installed version is 8.0.11
No valid packages found
install failed
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 NAME
array ("password: ", "PASSWORD"), // SSH is asking for password
array ("Password: ", "PASSWORD1"), // SSH is asking for password
array ("yes/no)?", "YESNO"), // SSH is asking whether to store the host entry
array ("# ", "SHELL", EXP_EXACT) //We've got the shell!
), $match);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.