AOP exception + fatal error using libssh2
OK here is a strange one:
I'm currently writing a server-administration tool with FLOW3. As I want to connect to other systems as well, I make use of the libssh2 library (http://www.php.net/manual/en/book.ssh2.php).
So my first simple step was basically this:
$connection = ssh2_connect('localhost', 22); ssh2_auth_none($connection, 'myuser');
I did this in the StandardController of my package, that i just kickstarted before, so there is nothing in between. The result of this is a RuntimeException somewhere out of the AOP stuff when rendering the View (I guess) [attached that result].
It's getting even stranger, when I put the result of the authentication method into a variable like this:
$connection = ssh2_connect('localhost', 22); $supportedAuthenticationMethods = ssh2_auth_none($connection, 'myuser');
This results in a fatal error:
Fatal error: Call to a member function getVariableContainer() on a non-object in /var/www/localhost/htdocs/flow3/Packages/Global/Fluid/Classes/View/TemplateView.php on line 171
As this stuff of course doesnt belong the StandardController (DDD), I put it into its own class => Same result
BTW: I'm using PHP 5.3_RC2, FLOW3_alpha1 and head-revision of libssh2 on a Gentoo 64bit Linux system.
Updated by Karsten Dambekalns about 12 years ago
- Status changed from Needs Feedback to Closed
I consider this a PHP and/or SSH2 extension bug. It could well be (looking at the last release date of that extension), that it is not fully compatible with PHP 5.3.
The error message is "impossible", as the $className is declared as a member variable and thus can never be undefined.