Code Monkey home page Code Monkey logo

pecl-expect's People

Contributors

sibaz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pecl-expect's Issues

Build fine, but at runtime: libexpect5.45.4.so not found

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?

How to use in php8 environment?

php8 is not supported in the current version

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

Match array not initialized and filled in expect_expectl in PHP 7.4.33

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.