Re: php_ssh2 and php-5.3.1 (on windows)

From: Date: Wed, 25 Nov 2009 22:43:32 +0000
Subject: Re: php_ssh2 and php-5.3.1 (on windows)
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6844@lists.php.net to get a copy of this message
Hi! Nicolai Scheer schrieb: > The config.w32 was missing, so I created my own: > > ARG_WITH("ssh2", "ssh2 support", "no"); > > if (PHP_SSH2 != "no") > { > if ( CHECK_LIB("libssh2.lib", "ssh2", PHP_SSH2) > && CHECK_HEADER_ADD_INCLUDE("libssh2.h", "CFLAGS_SSH2", > PHP_SSH2 > + "/libssh2") ) > { > EXTENSION("ssh2", "ssh2.c ssh2_fopen_wrappers.c ssh2_sftp.c", > "shared"); > AC_DEFINE('HAVE_SSH2', 1); > } > else > { > WARNING("ssh2 not enabled; ibraries and headers not found!"); > PHP_SSH2 = "no"; > } > } > > With these changes, the extension compiled fine and seems to work. > Did I do it the right way, any suggestions? > > The only thing that annoys me right now is a strange warning I get every > time I invoke a ssh2 function: > > Warning: Invalid CRT parameters detected in Unknown on line 0 > > Any hints on this? By the way: 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.dll Greetings, Nico

« previous php.pecl.dev (#6844) next »