You must add extension = ssh2.so to your php.ini for this to work even though the documentation says there is no configuration directive required.
Runtime Configuration
This extension has no configuration directives defined in php.ini.
abc at hotmail dot com ¶
3 years ago
Mircea Hutanu ¶
3 years ago
If you are compiling it against PHP 5.3.X make sure to remove line 53 from ssh2.c file :
52 #ifdef ZEND_ENGINE_2
53 static
54 ZEND_BEGIN_ARG_INFO(php_ssh2_first_arg_force_ref, 0)
55 ZEND_ARG_PASS_INFO(1)
56 ZEND_END_ARG_INFO()
