Giter Club home page Giter Club logo

netconf's People

Contributors

lamoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

netconf's Issues

Update packagist version with correct PS4 autoloading

#2 corrected the autoloading for the library, but v1.0.1 on packagist does not contain this, meaning I have to depend on dev-master in my composer.json in order to properly require the library. Would it be possible to release a new version with this commit?

Thanks!

Planning rework to use modern versions of phpseclib

Title says it. phpseclib 2.0 has been out for forever, and I've procrastinated on modernizing this. phpseclib 1.0 still has some random disconnects (not sure why, seems to be due to buffering or something), so this is needed.

Need to remove destruct() call to closeSession

It was causing some fatal errors to be thrown:

PHP Fatal error:  Uncaught exception 'ErrorException' with message 'Operation disallowed prior to login()' in /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php:2540
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleError(1024, 'Operation disal...', '/var/www/vendor...', 2540, Array)
#1 /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2540): user_error('Operation disal...')
#2 /var/www/vendor/lamoni/netconf/NetConf.php(192): Net_SSH2->write('?<rpc message-i...')
#3 /var/www/vendor/lamoni/netconf/NetConf.php(218): Lamoni\NetConf\NetConf->sendRaw('<close-session/...', 'rpc', '</rpc-reply>', Array)
#4 /var/www/vendor/lamoni/netconf/NetConf.php(592): Lamoni\NetConf\NetConf->sendRPC('<close-session/...')
#5 /var/www/vendor/lamoni/netconf/NetConf.php(146): Lamoni\NetConf\NetConf->closeSession()
#6 [internal function]: Lamoni\NetConf\NetConf->__destruct()
#7 {main}
  thrown in /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php on line 2540

This solved it:

    /**
     * Close the session on instance death
     */
    public function __destruct()
    {
        //$this->closeSession();
    }

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.