Re: php_ssh2 and php-5.3.1 (on windows)
| From: | Gustavo Lopes | Date: | Thu, 26 Nov 2009 12:07:00 +0000 |
| Subject: | Re: php_ssh2 and php-5.3.1 (on windows) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6845@lists.php.net to get a copy of this message | ||
On Wed, 25 Nov 2009 22:41:05 -0000, Nicolai Scheer <scope@planetavent.de> wrote:
Gustavo Lopes schrieb:No, I only tried the SVN version. It already included a working (or mostly working) config.w32. As to your question in your other e-mail:Ok, I will try with the latest version from svn. Have you tried with version 0.11? Which config.w32 did you use?I can't reproduce. That code gives me a resource(4) of type (SSH2 Session) with no notice. I'm using VC9 and the latest revision of the extension from SVN.php -m or php --ri ssh2Neither of these provokes the error. But a script as simple as <?php $connection = ssh2_connect( 'example.com', 22 ); ?>
The php_ssh2.dll from the 5.2.6 pecl package seems to not need the libssh2.dll... How can I compile my own version without these dependencies? My version always asks for libssh2.dll and zlib.dllCompile libssh2 and zlib as static libraries instead of dynamic libraries (DLLs). Then recompile the extension. You may have to change some preprocessor definitions (e.g. in config.w32). For instance, ZLIB_DLL should not be defined in these circumstances. You can probably figure out what to do by looking at the headers of zlib and libssh2. If you still can't do it, drop a me a line. -- Gustavo Lopes