lamoni / netconf Goto Github PK
View Code? Open in Web Editor NEWA vendor-agnostic PHP NETCONF implementation
License: MIT License
A vendor-agnostic PHP NETCONF implementation
License: MIT License
Fatal error: Call to a member function attributes() on boolean in /lamoni/netconf/NetConfMessage/NetConfMessageRecv/NetConfMessageRecvRPC.php on line 48
I need to add a check for if ->getResponse() is valid before I can call ->attributes()
#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!
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.
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();
}
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.