Bug #3617

AOP exception + fatal error using libssh2

Added by Alexander Buch over 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Start date:
2009-06-08
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

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.


Files

debug_backtrace.html (18.6 KB) debug_backtrace.html Debug Backtrace Alexander Buch, 2009-06-08 22:11
StandardController.php (2.15 KB) StandardController.php The controller code Alexander Buch, 2009-06-08 22:11
FLOW3_Development.log (3.31 KB) FLOW3_Development.log Partial logfile Alexander Buch, 2009-06-08 22:11
backtrace_printed.pdf (81.4 KB) backtrace_printed.pdf PDF-Version of debug backtrace Alexander Buch, 2009-06-08 22:40
backtrace_printed_better.pdf (80 KB) backtrace_printed_better.pdf Better version of PDF-printed backtrace Alexander Buch, 2009-06-08 22:55
#3

Updated by Robert Lemke over 12 years ago

  • Target version set to 283
#4

Updated by Karsten Dambekalns over 12 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Karsten Dambekalns

Does this error still occur with FLOW3's alpha2and the final of PHP 5.3?

#5

Updated by Robert Lemke over 12 years ago

  • Priority changed from Must have to Should have
  • Target version changed from 283 to 1.0 alpha 3
#6

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.

Also available in: Atom PDF