php-ext.com / ssh2 (from pecl using PHP 8.0.5-zts-buster)

Dockerfile
FROM php:8.0.5-zts-buster
WORKDIR /tmp
RUN apt update && \
    apt install -y --no-install-recommends git subversion autoconf build-essential && \
    apt install -y --no-install-recommends libssh2-1-dev && \
    rm -rf /var/lib/apt/lists/*
RUN pecl install --force ssh2 && \
    pecl run-tests ssh2
Build output FAIL 11ss
Step 1/4 : FROM php:8.0.5-zts-buster
---> e89b8bc8c67a
Step 2/4 : WORKDIR /tmp
---> Running in c4d40d6acc0a
Removing intermediate container c4d40d6acc0a
---> 68fa8cc47ebf
Step 3/4 : RUN apt update && apt install -y --no-install-recommends git subversion autoconf build-essential && apt install -y --no-install-recommends libssh2-1-dev && rm -rf /var/lib/apt/lists/*
---> Running in 8676db7dd15a


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [121 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [285 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [10.9 kB]
Fetched 8441 kB in 1s (5899 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
2 packages can be upgraded. Run 'apt list --upgradable' to see them.


WARNING: 
apt
 
does not have a stable CLI interface. 
Use with caution in scripts.




Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11).
The following package was automatically installed and is no longer required:
lsb-base
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
git-man libapr1 libaprutil1 libcurl3-gnutls liberror-perl libexpat1
libpcre2-8-0 libserf-1-1 libsvn1 libutf8proc2
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-cvs git-mediawiki git-svn db5.3-util
libapache2-mod-svn subversion-tools
Recommended packages:
less ssh-client
The following NEW packages will be installed:
build-essential git git-man libapr1 libaprutil1 libcurl3-gnutls
liberror-perl libexpat1 libpcre2-8-0 libserf-1-1 libsvn1 libutf8proc2
subversion
0 upgraded, 13 newly installed, 0 to remove and 2 not upgraded.
Need to get 10.7 MB of archives.
After this operation, 50.2 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main amd64 libcurl3-gnutls amd64 7.64.0-4+deb10u2 [330 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 build-essential amd64 12.6 [7576 B]
Get:3 http://deb.debian.org/debian buster/main amd64 libexpat1 amd64 2.2.6-2+deb10u1 [106 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 libpcre2-8-0 amd64 10.32-5 [213 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 liberror-perl all 0.17027-2 [30.9 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 git-man all 1:2.20.1-2+deb10u3 [1620 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 git amd64 1:2.20.1-2+deb10u3 [5633 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 libapr1 amd64 1.6.5-1+b1 [102 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libaprutil1 amd64 1.6.1-4 [91.8 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 libserf-1-1 amd64 1.3.9-7+b10 [53.6 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libutf8proc2 amd64 2.3.0-1 [53.0 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libsvn1 amd64 1.10.4-1+deb10u2 [1403 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 subversion amd64 1.10.4-1+deb10u2 [1008 kB]
debconf: delaying package configuration, since apt-utils is not installed

Fetched 10.7 MB in 0s (89.9 MB/s)
Selecting previously unselected package build-essential.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ...
12690 files and directories currently installed.)
Preparing to unpack .../00-build-essential_12.6_amd64.deb ...
Unpacking build-essential (12.6) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../01-libcurl3-gnutls_7.64.0-4+deb10u2_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.64.0-4+deb10u2) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../02-libexpat1_2.2.6-2+deb10u1_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.6-2+deb10u1) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../03-libpcre2-8-0_10.32-5_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.32-5) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../04-liberror-perl_0.17027-2_all.deb ...
Unpacking liberror-perl (0.17027-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../05-git-man_1%3a2.20.1-2+deb10u3_all.deb ...
Unpacking git-man (1:2.20.1-2+deb10u3) ...
Selecting previously unselected package git.
Preparing to unpack .../06-git_1%3a2.20.1-2+deb10u3_amd64.deb ...
Unpacking git (1:2.20.1-2+deb10u3) ...
Selecting previously unselected package libapr1:amd64.
Preparing to unpack .../07-libapr1_1.6.5-1+b1_amd64.deb ...
Unpacking libapr1:amd64 (1.6.5-1+b1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../08-libaprutil1_1.6.1-4_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-4) ...
Selecting previously unselected package libserf-1-1:amd64.
Preparing to unpack .../09-libserf-1-1_1.3.9-7+b10_amd64.deb ...
Unpacking libserf-1-1:amd64 (1.3.9-7+b10) ...
Selecting previously unselected package libutf8proc2:amd64.
Preparing to unpack .../10-libutf8proc2_2.3.0-1_amd64.deb ...
Unpacking libutf8proc2:amd64 (2.3.0-1) ...
Selecting previously unselected package libsvn1:amd64.
Preparing to unpack .../11-libsvn1_1.10.4-1+deb10u2_amd64.deb ...
Unpacking libsvn1:amd64 (1.10.4-1+deb10u2) ...
Selecting previously unselected package subversion.
Preparing to unpack .../12-subversion_1.10.4-1+deb10u2_amd64.deb ...
Unpacking subversion (1.10.4-1+deb10u2) ...
Setting up libexpat1:amd64 (2.2.6-2+deb10u1) ...
Setting up libutf8proc2:amd64 (2.3.0-1) ...
Setting up libapr1:amd64 (1.6.5-1+b1) ...
Setting up libcurl3-gnutls:amd64 (7.64.0-4+deb10u2) ...
Setting up liberror-perl (0.17027-2) ...
Setting up libpcre2-8-0:amd64 (10.32-5) ...
Setting up build-essential (12.6) ...
Setting up git-man (1:2.20.1-2+deb10u3) ...
Setting up libaprutil1:amd64 (1.6.1-4) ...
Setting up libserf-1-1:amd64 (1.3.9-7+b10) ...
Setting up git (1:2.20.1-2+deb10u3) ...
Setting up libsvn1:amd64 (1.10.4-1+deb10u2) ...
Setting up subversion (1.10.4-1+deb10u2) ...
Processing triggers for libc-bin (2.28-10) ...


WARNING: 
apt
 
does not have a stable CLI interface. 
Use with caution in scripts.


Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
lsb-base
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libgcrypt20-dev libgpg-error-dev
Suggested packages:
libgcrypt20-doc
The following NEW packages will be installed:
libgcrypt20-dev libgpg-error-dev libssh2-1-dev
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 1043 kB of archives.
After this operation, 3347 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 libgpg-error-dev amd64 1.35-1 [124 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 libgcrypt20-dev amd64 1.8.4-5 [608 kB]
Get:3 http://deb.debian.org/debian buster/main amd64 libssh2-1-dev amd64 1.8.0-2.1 [310 kB]
debconf: delaying package configuration, since apt-utils is not installed

Fetched 1043 kB in 0s (31.6 MB/s)
Selecting previously unselected package libgpg-error-dev.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ...
13812 files and directories currently installed.)
Preparing to unpack .../libgpg-error-dev_1.35-1_amd64.deb ...
Unpacking libgpg-error-dev (1.35-1) ...
Selecting previously unselected package libgcrypt20-dev.
Preparing to unpack .../libgcrypt20-dev_1.8.4-5_amd64.deb ...
Unpacking libgcrypt20-dev (1.8.4-5) ...
Selecting previously unselected package libssh2-1-dev:amd64.
Preparing to unpack .../libssh2-1-dev_1.8.0-2.1_amd64.deb ...
Unpacking libssh2-1-dev:amd64 (1.8.0-2.1) ...
Setting up libgpg-error-dev (1.35-1) ...
Setting up libgcrypt20-dev (1.8.4-5) ...
Setting up libssh2-1-dev:amd64 (1.8.0-2.1) ...
Removing intermediate container 8676db7dd15a
---> 8fea4a3e1471
Step 4/4 : RUN pecl install --force ssh2 && pecl run-tests ssh2
---> Running in 73f1a268e317
warning: pecl/ssh2 requires PHP (version >= 4.0.0, version <= 6.0.0), installed version is 8.0.5
downloading ssh2-0.13.tgz ...
Starting to download ssh2-0.13.tgz (28,984 bytes)
.
.
.
.
.
.
...done: 28,984 bytes
6 source files, building
running: phpize
Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
libssh2 prefix?
[autodetect]
:
building in /tmp/pear/temp/pear-build-defaultuser3A5rEz/ssh2-0.13
running: /tmp/pear/temp/ssh2/configure --with-php-config=/usr/local/bin/php-config --with-ssh2
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-zts-20200930
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for ssh2 support... yes, shared
checking for ssh2 files in default path... found in /usr
checking for libssh2_session_hostkey in -lssh2... yes
checking for libssh2_agent_init in -lssh2... yes
checking for libssh2_session_set_timeout in -lssh2... yes
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-defaultuser3A5rEz/ssh2-0.13/libtool --mode=compile cc -I. -I/tmp/pear/temp/ssh2 -I/tmp/pear/temp/pear-build-defaultuser3A5rEz/ssh2-0.13/include -I/tmp/pear/temp/pear-build-defaultuser3A5rEz/ssh2-0.13/main -I/tmp/pear/temp/ssh2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -c /tmp/pear/temp/ssh2/ssh2.c -o ssh2.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/ssh2 -I/tmp/pear/temp/pear-build-defaultuser3A5rEz/ssh2-0.13/include -I/tmp/pear/temp/pear-build-defaultuser3A5rEz/ssh2-0.13/main -I/tmp/pear/temp/ssh2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/ssh2/ssh2.c  -fPIC -DPIC -o .libs/ssh2.o
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:73:2: error: expected specifier-qualifier-list before 'TSRMLS_D'
TSRMLS_D;
^~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:101: warning: "closesocket" redefined
#define closesocket(s) close(s)
In file included from /usr/local/include/php/ext/standard/file.h:20,
from /tmp/pear/temp/ssh2/ssh2.c:27:
/usr/local/include/php/main/php_network.h:26: note: this is the location of the previous definition
# define closesocket close
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:196:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
LIBSSH2_SESSION *php_ssh2_session_connect(char *host, int port, zval *methods, zval *callbacks TSRMLS_DC);
^~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:197:25: error: unknown type name 'zend_rsrc_list_entry'; did you mean 'zend_rsrc_list_dtors_entry'?
void php_ssh2_sftp_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC);
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/tmp/pear/temp/ssh2/php_ssh2.h:201:12: error: expected ';', ',' or ')' before 'TSRMLS_DC'
TSRMLS_DC);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:51:5: warning: implicit declaration of function 'ZEND_ARG_PASS_INFO'; did you mean 'ZEND_ARG_OBJ_INFO'? [-Wimplicit-function-declaration]
ZEND_ARG_PASS_INFO(1)
^~~~~~~~~~~~~~~~~~
ZEND_ARG_OBJ_INFO
/tmp/pear/temp/ssh2/ssh2.c:51:5: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
/tmp/pear/temp/ssh2/ssh2.c:51:5: note: (near initialization for 'php_ssh2_first_arg_force_ref[1].name')
/tmp/pear/temp/ssh2/ssh2.c:51:5: error: initializer element is not constant
/tmp/pear/temp/ssh2/ssh2.c:51:5: note: (near initialization for 'php_ssh2_first_arg_force_ref[1].name')
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'php_ssh2_debug_cb':
/tmp/pear/temp/ssh2/php_ssh2.h:106:34: error: 'TSRMLS_D' undeclared (first use in this function); did you mean 'TSRM_H'?
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:99:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:106:34: note: each undeclared identifier is reported only once for each function it appears in
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:99:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:106:78: error: 'php_ssh2_session_data' {aka 'struct _php_ssh2_session_data'} has no member named 'tsrm_ls'
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~
/tmp/pear/temp/ssh2/ssh2.c:99:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:109:2: warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration]
MAKE_STD_ZVAL(zmessage);
^~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:110:55: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(zmessage, (char*)message, message_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:110:2: error: 'ZVAL_STRINGL' undeclared (first use in this function); did you mean 'TOK_STRING'?
ZVAL_STRINGL(zmessage, (char*)message, message_len, 1);
^~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/ssh2/ssh2.c:114:58: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(zlanguage, (char*)language, language_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:121:17: warning: implicit declaration of function 'call_user_function_ex'; did you mean 'call_user_function'? [-Wimplicit-function-declaration]
if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~~~~~~~~~~~~~~
call_user_function
/tmp/pear/temp/ssh2/ssh2.c:121:95: error: expected ')' before 'TSRMLS_CC'
if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:122:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling disconnect callback");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:122:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling disconnect callback");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:124:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zdisplay);
^~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:125:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zmessage);
^~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:126:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zlanguage);
^~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'php_ssh2_ignore_cb':
/tmp/pear/temp/ssh2/php_ssh2.h:106:34: error: 'TSRMLS_D' undeclared (first use in this function); did you mean 'TSRM_H'?
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:138:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:106:78: error: 'php_ssh2_session_data' {aka 'struct _php_ssh2_session_data'} has no member named 'tsrm_ls'
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~
/tmp/pear/temp/ssh2/ssh2.c:138:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:149:55: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(zmessage, (char*)message, message_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:149:2: error: 'ZVAL_STRINGL' undeclared (first use in this function); did you mean 'TOK_STRING'?
ZVAL_STRINGL(zmessage, (char*)message, message_len, 1);
^~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/ssh2/ssh2.c:152:95: error: expected ')' before 'TSRMLS_CC'
if (FAILURE == call_user_function_ex(NULL, NULL, data->ignore_cb, &zretval, 1, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:153:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling ignore callback");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:153:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling ignore callback");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:155:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zmessage);
^~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:157:17: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zretval);
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'php_ssh2_macerror_cb':
/tmp/pear/temp/ssh2/php_ssh2.h:106:34: error: 'TSRMLS_D' undeclared (first use in this function); did you mean 'TSRM_H'?
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:172:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:106:78: error: 'php_ssh2_session_data' {aka 'struct _php_ssh2_session_data'} has no member named 'tsrm_ls'
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~
/tmp/pear/temp/ssh2/ssh2.c:172:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:183:52: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(zpacket, (char*)packet, packet_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:183:2: error: 'ZVAL_STRINGL' undeclared (first use in this function); did you mean 'TOK_STRING'?
ZVAL_STRINGL(zpacket, (char*)packet, packet_len, 1);
^~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/ssh2/ssh2.c:186:97: error: expected ')' before 'TSRMLS_CC'
if (FAILURE == call_user_function_ex(NULL, NULL, data->macerror_cb, &zretval, 1, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:187:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling macerror callback");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:187:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling macerror callback");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:191:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zpacket);
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:193:17: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zretval);
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'php_ssh2_disconnect_cb':
/tmp/pear/temp/ssh2/php_ssh2.h:106:34: error: 'TSRMLS_D' undeclared (first use in this function); did you mean 'TSRM_H'?
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:208:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:106:78: error: 'php_ssh2_session_data' {aka 'struct _php_ssh2_session_data'} has no member named 'tsrm_ls'
#define SSH2_TSRMLS_FETCH(datap) TSRMLS_D = ((php_ssh2_session_data*)(datap))->tsrm_ls
^~
/tmp/pear/temp/ssh2/ssh2.c:208:2: note: in expansion of macro 'SSH2_TSRMLS_FETCH'
SSH2_TSRMLS_FETCH(*abstract);
^~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:223:55: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(zmessage, (char*)message, message_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:223:2: error: 'ZVAL_STRINGL' undeclared (first use in this function); did you mean 'TOK_STRING'?
ZVAL_STRINGL(zmessage, (char*)message, message_len, 1);
^~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/ssh2/ssh2.c:227:58: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(zlanguage, (char*)language, language_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:230:95: error: expected ')' before 'TSRMLS_CC'
if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:231:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling disconnect callback");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:231:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure calling disconnect callback");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:233:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zreason);
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:234:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zmessage);
^~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:235:16: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&zlanguage);
^~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:36,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_variables.h:79:35: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void zval_ptr_dtor(zval *zval_ptr);
~~~~~~^~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: At top level:
/tmp/pear/temp/ssh2/ssh2.c:248:156: error: expected ';', ',' or ')' before 'TSRMLS_DC'
static int php_ssh2_set_callback(LIBSSH2_SESSION *session, HashTable *ht, char *callback, int callback_len, int callback_type, php_ssh2_session_data *data TSRMLS_DC)
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'php_ssh2_set_method':
/tmp/pear/temp/ssh2/ssh2.c:312:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, method, method_len + 1, (void**)&value) == FAILURE) {
^~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:312:6: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(ht, method, method_len + 1, (void**)&value) == FAILURE) {
^~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:312:65: warning: comparison between pointer and integer
if (zend_hash_find(ht, method, method_len + 1, (void**)&value) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:316:28: warning: implicit declaration of function 'Z_TYPE_PP'; did you mean 'Z_TYPE_P'? [-Wimplicit-function-declaration]
if (!value || !*value || (Z_TYPE_PP(value) != IS_STRING)) {
^~~~~~~~~
Z_TYPE_P
/tmp/pear/temp/ssh2/ssh2.c:320:59: warning: implicit declaration of function 'Z_STRVAL_PP'; did you mean 'Z_STRVAL_P'? [-Wimplicit-function-declaration]
return libssh2_session_method_pref(session, method_type, Z_STRVAL_PP(value));
^~~~~~~~~~~
Z_STRVAL_P
/tmp/pear/temp/ssh2/ssh2.c:320:59: warning: passing argument 3 of 'libssh2_session_method_pref' makes pointer from integer without a cast [-Wint-conversion]
return libssh2_session_method_pref(session, method_type, Z_STRVAL_PP(value));
^~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/php_ssh2.h:24,
from /tmp/pear/temp/ssh2/ssh2.c:28:
/usr/include/libssh2.h:573:57: note: expected 'const char *' but argument is of type 'int'
const char *prefs);
~~~~~~~~~~~~^~~~~
/tmp/pear/temp/ssh2/ssh2.c: At top level:
/tmp/pear/temp/ssh2/ssh2.c:327:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
LIBSSH2_SESSION *php_ssh2_session_connect(char *host, int port, zval *methods, zval *callbacks TSRMLS_DC)
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_connect':
/tmp/pear/temp/ssh2/ssh2.c:455:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|la!a!", &host, &host_len, &port, &methods, &callbacks) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:455:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|la!a!", &host, &host_len, &port, &methods, &callbacks) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:455:113: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|la!a!", &host, &host_len, &port, &methods, &callbacks) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:459:12: warning: implicit declaration of function 'php_ssh2_session_connect'; did you mean 'libssh2_session_disconnect'? [-Wimplicit-function-declaration]
session = php_ssh2_session_connect(host, port, methods, callbacks TSRMLS_CC);
^~~~~~~~~~~~~~~~~~~~~~~~
libssh2_session_disconnect
/tmp/pear/temp/ssh2/ssh2.c:459:67: error: expected ')' before 'TSRMLS_CC'
session = php_ssh2_session_connect(host, port, methods, callbacks TSRMLS_CC);
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:459:10: warning: assignment to 'LIBSSH2_SESSION *' {aka 'struct _LIBSSH2_SESSION *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
session = php_ssh2_session_connect(host, port, methods, callbacks TSRMLS_CC);
^
/tmp/pear/temp/ssh2/ssh2.c:461:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to %s", host);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:461:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to %s", host);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:465:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE'; did you mean 'ZEND_REF_FIRST_SOURCE'? [-Wimplicit-function-declaration]
ZEND_REGISTER_RESOURCE(return_value, session, le_ssh2_session);
^~~~~~~~~~~~~~~~~~~~~~
ZEND_REF_FIRST_SOURCE
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_methods_negotiated':
/tmp/pear/temp/ssh2/ssh2.c:478:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zsession) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:478:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zsession) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:478:71: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zsession) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:482:2: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE'; did you mean 'ZEND_FETCH_LIST_R'? [-Wimplicit-function-declaration]
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
^~~~~~~~~~~~~~~~~~~
ZEND_FETCH_LIST_R
/tmp/pear/temp/ssh2/ssh2.c:482:31: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:496:46: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "kex", kex, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:496:2: error: 'add_assoc_string' undeclared (first use in this function); did you mean 'add_assoc_string_ex'?
add_assoc_string(return_value, "kex", kex, 1);
^~~~~~~~~~~~~~~~
add_assoc_string_ex
/tmp/pear/temp/ssh2/ssh2.c:497:54: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(return_value, "hostkey", hostkey, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:499:2: warning: implicit declaration of function 'ALLOC_INIT_ZVAL' [-Wimplicit-function-declaration]
ALLOC_INIT_ZVAL(endpoint);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:501:49: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "crypt", crypt_cs, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:502:45: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "mac", mac_cs, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:503:47: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "comp", comp_cs, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:504:47: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "lang", lang_cs, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:509:49: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "crypt", crypt_sc, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:510:45: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "mac", mac_sc, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:511:47: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "comp", comp_sc, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:512:47: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(endpoint, "lang", lang_sc, 1);
^
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_fingerprint':
/tmp/pear/temp/ssh2/ssh2.c:529:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zsession, &flags) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:529:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zsession, &flags) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:529:81: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &zsession, &flags) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:534:31: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:538:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to retrieve fingerprint from specified session");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:538:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to retrieve fingerprint from specified session");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:547:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "No fingerprint available using specified hash");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:547:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "No fingerprint available using specified hash");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:551:49: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL(fingerprint, fingerprint_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:551:3: error: 'RETURN_STRINGL' undeclared (first use in this function); did you mean 'TOK_STRING'?
RETURN_STRINGL(fingerprint, fingerprint_len, 1);
^~~~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/ssh2/ssh2.c:559:50: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2
RETURN_STRINGL(hexchars, 2 * fingerprint_len, 0);
^
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_none':
/tmp/pear/temp/ssh2/ssh2.c:575:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zsession, &username, &username_len) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:575:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zsession, &username, &username_len) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:575:98: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zsession, &username, &username_len) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:579:31: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:590:4: error: too many arguments to function 'add_next_index_stringl'
add_next_index_stringl(return_value, s, p - s, 1);
^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:481:22: note: declared here
ZEND_API zend_result add_next_index_stringl(zval *arg, const char *str, size_t length);
^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:595:3: error: too many arguments to function 'add_next_index_string'
add_next_index_string(return_value, s, 1);
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:480:22: note: declared here
ZEND_API zend_result add_next_index_string(zval *arg, const char *str);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_password':
/tmp/pear/temp/ssh2/ssh2.c:632:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &zsession, &username, &username_len, &password, &password_len) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:632:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &zsession, &username, &username_len, &password, &password_len) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:632:125: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &zsession, &username, &username_len, &password, &password_len) == FAILURE) {
^~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:145:30: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); \
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:636:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:636:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:636:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:650:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Authentication failed for %s using password", username);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:650:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Authentication failed for %s using password", username);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_pubkey_file':
/tmp/pear/temp/ssh2/ssh2.c:673:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsss|s", &zsession, &username, &username_len,
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:673:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsss|s", &zsession, &username, &username_len,
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:676:51: warning: comparison between pointer and integer
&passphrase, &passphrase_len) == FAILURE) {
^~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:221:34: error: expected ')' before 'TSRMLS_CC'
php_check_open_basedir(filename TSRMLS_CC)
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:680:6: note: in expansion of macro 'SSH2_OPENBASEDIR_CHECKPATH'
if (SSH2_OPENBASEDIR_CHECKPATH(pubkey) || SSH2_OPENBASEDIR_CHECKPATH(privkey)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:221:34: error: expected ')' before 'TSRMLS_CC'
php_check_open_basedir(filename TSRMLS_CC)
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:680:44: note: in expansion of macro 'SSH2_OPENBASEDIR_CHECKPATH'
if (SSH2_OPENBASEDIR_CHECKPATH(pubkey) || SSH2_OPENBASEDIR_CHECKPATH(privkey)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:145:30: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); \
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:684:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:684:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:684:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:710:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Authentication failed for %s using public key: %s", username, buf);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:710:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Authentication failed for %s using public key: %s", username, buf);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_hostbased_file':
/tmp/pear/temp/ssh2/ssh2.c:728:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssss|s!s!", &zsession, &username, &username_len,
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:728:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssss|s!s!", &zsession, &username, &username_len,
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:733:60: warning: comparison between pointer and integer
&local_username, &local_username_len) == FAILURE) {
^~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:221:34: error: expected ')' before 'TSRMLS_CC'
php_check_open_basedir(filename TSRMLS_CC)
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:737:6: note: in expansion of macro 'SSH2_OPENBASEDIR_CHECKPATH'
if (SSH2_OPENBASEDIR_CHECKPATH(pubkey) || SSH2_OPENBASEDIR_CHECKPATH(privkey)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:221:34: error: expected ')' before 'TSRMLS_CC'
php_check_open_basedir(filename TSRMLS_CC)
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:737:44: note: in expansion of macro 'SSH2_OPENBASEDIR_CHECKPATH'
if (SSH2_OPENBASEDIR_CHECKPATH(pubkey) || SSH2_OPENBASEDIR_CHECKPATH(privkey)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:145:30: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); \
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:741:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:741:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:741:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:750:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Authentication failed for %s using hostbased public key", username);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:750:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Authentication failed for %s using hostbased public key", username);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_forward_listen':
/tmp/pear/temp/ssh2/ssh2.c:772:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|sl", &zsession, &port, &host, &host_len, &max_connections) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:772:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|sl", &zsession, &port, &host, &host_len, &max_connections) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:772:118: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|sl", &zsession, &port, &host, &host_len, &max_connections) == FAILURE) {
^~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:152:30: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); \
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:776:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION'
SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:154:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection not authenticated"); \
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:776:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION'
SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:154:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection not authenticated"); \
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:776:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION'
SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:781:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure listening on remote port");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:781:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure listening on remote port");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:788:2: warning: implicit declaration of function 'zend_list_addref'; did you mean 'zend_list_free'? [-Wimplicit-function-declaration]
zend_list_addref(data->session_rsrcid);
^~~~~~~~~~~~~~~~
zend_list_free
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_forward_accept':
/tmp/pear/temp/ssh2/ssh2.c:806:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zlistener) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:806:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zlistener) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:806:72: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zlistener) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:810:28: error: expected expression before 'php_ssh2_listener_data'
ZEND_FETCH_RESOURCE(data, php_ssh2_listener_data*, &zlistener, -1, PHP_SSH2_LISTENER_RES_NAME, le_ssh2_listener);
^~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:827:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure allocating stream");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:827:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure allocating stream");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_poll':
/tmp/pear/temp/ssh2/ssh2.c:861:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &zdesc, &timeout) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:861:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &zdesc, &timeout) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:861:80: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &zdesc, &timeout) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:870:66: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
zend_hash_get_current_data(Z_ARRVAL_P(zdesc), (void**)&subarray) == SUCCESS;
^
/tmp/pear/temp/ssh2/ssh2.c:870:3: error: 'zend_hash_get_current_data' undeclared (first use in this function); did you mean 'zend_hash_get_current_data_ex'?
zend_hash_get_current_data(Z_ARRVAL_P(zdesc), (void**)&subarray) == SUCCESS;
^~~~~~~~~~~~~~~~~~~~~~~~~~
zend_hash_get_current_data_ex
/tmp/pear/temp/ssh2/ssh2.c:877:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid element in poll array, not a sub array");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:877:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid element in poll array, not a sub array");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:881:22: warning: implicit declaration of function 'Z_ARRVAL_PP'; did you mean 'Z_ARRVAL_P'? [-Wimplicit-function-declaration]
if (zend_hash_find(Z_ARRVAL_PP(subarray), "events", sizeof("events"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~~~~
Z_ARRVAL_P
/tmp/pear/temp/ssh2/ssh2.c:881:22: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [-Wint-conversion]
if (zend_hash_find(Z_ARRVAL_PP(subarray), "events", sizeof("events"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: expected 'const HashTable *' {aka 'const struct _zend_array *'} but argument is of type 'int'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:881:45: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(Z_ARRVAL_PP(subarray), "events", sizeof("events"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:881:7: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_ARRVAL_PP(subarray), "events", sizeof("events"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:881:91: warning: comparison between pointer and integer
if (zend_hash_find(Z_ARRVAL_PP(subarray), "events", sizeof("events"), (void**)&tmpzval) == FAILURE ||
^~
/tmp/pear/temp/ssh2/ssh2.c:883:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid data in subarray, no events element, or not a bitmask");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:883:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid data in subarray, no events element, or not a bitmask");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:887:23: warning: implicit declaration of function 'Z_LVAL_PP'; did you mean 'Z_LVAL_P'? [-Wimplicit-function-declaration]
pollfds[i].events = Z_LVAL_PP(tmpzval);
^~~~~~~~~
Z_LVAL_P
/tmp/pear/temp/ssh2/ssh2.c:888:22: warning: passing argument 1 of 'zend_hash_find' makes pointer from integer without a cast [-Wint-conversion]
if (zend_hash_find(Z_ARRVAL_PP(subarray), "resource", sizeof("resource"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: expected 'const HashTable *' {aka 'const struct _zend_array *'} but argument is of type 'int'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:888:45: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(Z_ARRVAL_PP(subarray), "resource", sizeof("resource"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:888:7: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_ARRVAL_PP(subarray), "resource", sizeof("resource"), (void**)&tmpzval) == FAILURE ||
^~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:888:95: warning: comparison between pointer and integer
if (zend_hash_find(Z_ARRVAL_PP(subarray), "resource", sizeof("resource"), (void**)&tmpzval) == FAILURE ||
^~
/tmp/pear/temp/ssh2/ssh2.c:890:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid data in subarray, no resource element, or not of type resource");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:890:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid data in subarray, no resource element, or not of type resource");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:894:3: warning: implicit declaration of function 'zend_list_find'; did you mean 'zend_list_free'? [-Wimplicit-function-declaration]
zend_list_find(Z_LVAL_PP(tmpzval), &res_type);
^~~~~~~~~~~~~~
zend_list_free
/tmp/pear/temp/ssh2/ssh2.c:895:36: error: expected ')' before 'TSRMLS_CC'
res = zend_fetch_resource(tmpzval TSRMLS_CC, -1, "Poll Resource", NULL, 1, res_type);
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:895:29: warning: passing argument 1 of 'zend_fetch_resource' from incompatible pointer type [-Wincompatible-pointer-types]
res = zend_fetch_resource(tmpzval TSRMLS_CC, -1, "Poll Resource", NULL, 1, res_type);
^~~~~~~
In file included from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:61:16: note: expected 'zend_resource *' {aka 'struct _zend_resource *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API void *zend_fetch_resource(zend_resource *res, const char *resource_type_name, int resource_type);
^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:895:9: error: too few arguments to function 'zend_fetch_resource'
res = zend_fetch_resource(tmpzval TSRMLS_CC, -1, "Poll Resource", NULL, 1, res_type);
^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:61:16: note: declared here
ZEND_API void *zend_fetch_resource(zend_resource *res, const char *resource_type_name, int resource_type);
^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:895:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
res = zend_fetch_resource(tmpzval TSRMLS_CC, -1, "Poll Resource", NULL, 1, res_type);
^
/tmp/pear/temp/ssh2/ssh2.c:905:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid resource type in subarray: %s", zend_rsrc_list_get_rsrc_type(Z_LVAL_PP(tmpzval) TSRMLS_CC));
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:905:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid resource type in subarray: %s", zend_rsrc_list_get_rsrc_type(Z_LVAL_PP(tmpzval) TSRMLS_CC));
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:140:43: error: 'zval' {aka 'struct _zval_struct'} has no member named 'is_ref'
#define Z_UNSET_ISREF_P(pz)           (pz)->is_ref = 0
^~
/tmp/pear/temp/ssh2/ssh2.c:928:4: note: in expansion of macro 'Z_UNSET_ISREF_P'
Z_UNSET_ISREF_P(subarray);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:931:39: warning: passing argument 2 of 'zend_hash_del' from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_del(Z_ARRVAL_P(subarray), "revents", sizeof("revents"));
^~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:165:78: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
ZEND_API zend_result ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
~~~~~~~~~~~~~^~~
/tmp/pear/temp/ssh2/ssh2.c:931:3: error: too many arguments to function 'zend_hash_del'
zend_hash_del(Z_ARRVAL_P(subarray), "revents", sizeof("revents"));
^~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:165:36: note: declared here
ZEND_API zend_result ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
^~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_init':
/tmp/pear/temp/ssh2/ssh2.c:955:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zsession) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:955:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zsession) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:955:71: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zsession) == FAILURE) {
^~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:152:30: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); \
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:959:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION'
SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:154:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection not authenticated"); \
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:959:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION'
SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:154:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection not authenticated"); \
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:959:2: note: in expansion of macro 'SSH2_FETCH_AUTHENTICATED_SESSION'
SSH2_FETCH_AUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:968:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to initialize publickey subsystem(%d) %s", last_error, error_msg);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:968:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to initialize publickey subsystem(%d) %s", last_error, error_msg);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_add':
/tmp/pear/temp/ssh2/ssh2.c:994:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|ba", &zpkey_data, &algo, &algo_len, &blob, &blob_len, &overwrite, &zattrs) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:994:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|ba", &zpkey_data, &algo, &algo_len, &blob, &blob_len, &overwrite, &zattrs) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:994:135: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|ba", &zpkey_data, &algo, &algo_len, &blob, &blob_len, &overwrite, &zattrs) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:998:28: error: expected expression before 'php_ssh2_pkey_subsys_data'
ZEND_FETCH_RESOURCE(data, php_ssh2_pkey_subsys_data*, &zpkey_data, -1, PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys);
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1009:54: warning: passing argument 2 of 'zend_hash_get_current_data_ex' from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_get_current_data_ex(Z_ARRVAL_P(zattrs), (void**)&attr_val, &pos) == SUCCESS;
^~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:235:30: note: expected 'HashPosition *' {aka 'unsigned int *'} but argument is of type 'void **'
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1009:4: error: too many arguments to function 'zend_hash_get_current_data_ex'
zend_hash_get_current_data_ex(Z_ARRVAL_P(zattrs), (void**)&attr_val, &pos) == SUCCESS;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:235:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1016:60: warning: passing argument 2 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types]
type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &key_len, &idx, 0, &pos);
^~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:232:94: note: expected 'zend_string **' {aka 'struct _zend_string **'} but argument is of type 'char **'
ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
~~~~~~~~~~~~~~^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1016:66: warning: passing argument 3 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types]
type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &key_len, &idx, 0, &pos);
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:232:117: note: expected 'zend_ulong *' {aka 'long unsigned int *'} but argument is of type 'int *'
ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
~~~~~~~~~~~~^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1016:76: warning: passing argument 4 of 'zend_hash_get_current_key_ex' from incompatible pointer type [-Wincompatible-pointer-types]
type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &key_len, &idx, 0, &pos);
^~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:232:142: note: expected 'HashPosition *' {aka 'unsigned int *'} but argument is of type 'long int *'
ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
~~~~~~~~~~~~~~^~~
/tmp/pear/temp/ssh2/ssh2.c:1016:11: error: too many arguments to function 'zend_hash_get_current_key_ex'
type = zend_hash_get_current_key_ex(Z_ARRVAL_P(zattrs), &key, &key_len, &idx, 0, &pos);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
                 from /usr/local/include/php/main/php.h:31,
                 from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:232:30: note: declared here
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1017:16: error: 'HASH_KEY_NON_EXISTANT' undeclared (first use in this function); did you mean 'HASH_KEY_NON_EXISTENT'?
if (type == HASH_KEY_NON_EXISTANT) {
^~~~~~~~~~~~~~~~~~~~~
HASH_KEY_NON_EXISTENT
/tmp/pear/temp/ssh2/ssh2.c:1017:13: warning: comparison between pointer and integer
if (type == HASH_KEY_NON_EXISTANT) {
^~
/tmp/pear/temp/ssh2/ssh2.c:1023:27: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Malformed attirbute array, contains numeric index");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1023:5: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Malformed attirbute array, contains numeric index");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1030:27: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty attribute key");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1030:5: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty attribute key");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:140:43: error: 'zval' {aka 'struct _zval_struct'} has no member named 'is_ref'
#define Z_UNSET_ISREF_P(pz)           (pz)->is_ref = 0
^~
/tmp/pear/temp/ssh2/ssh2.c:1036:4: note: in expansion of macro 'Z_UNSET_ISREF_P'
Z_UNSET_ISREF_P(&copyval);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1058:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to add %s key", algo);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1058:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to add %s key", algo);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:30,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/tmp/pear/temp/ssh2/ssh2.c:1069:18: warning: passing argument 1 of '_efree' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
efree(attrs[i].value);
/usr/local/include/php/Zend/zend_alloc.h:161:34: note: in definition of macro 'efree'
#define efree(ptr)       _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
^~~
In file included from /usr/local/include/php/Zend/zend.h:30,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_alloc.h:76:44: note: expected 'void *' but argument is of type 'const char *'
ZEND_API void   ZEND_FASTCALL _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
~~~~~~^~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_remove':
/tmp/pear/temp/ssh2/ssh2.c:1085:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &zpkey_data, &algo, &algo_len, &blob, &blob_len) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1085:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &zpkey_data, &algo, &algo_len, &blob, &blob_len) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1085:111: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &zpkey_data, &algo, &algo_len, &blob, &blob_len) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:1089:28: error: expected expression before 'php_ssh2_pkey_subsys_data'
ZEND_FETCH_RESOURCE(data, php_ssh2_pkey_subsys_data*, &zpkey_data, -1, PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys);
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1092:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to remove %s key", algo);
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1092:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to remove %s key", algo);
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_list':
/tmp/pear/temp/ssh2/ssh2.c:1109:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zpkey_data) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1109:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zpkey_data) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1109:73: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zpkey_data) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:1113:28: error: expected expression before 'php_ssh2_pkey_subsys_data'
ZEND_FETCH_RESOURCE(data, php_ssh2_pkey_subsys_data*, &zpkey_data, -1, PHP_SSH2_PKEY_SUBSYS_RES_NAME, le_ssh2_pkey_subsys);
^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1116:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to list keys on remote server");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1116:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to list keys on remote server");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1128:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(key, "name", keys[i].name, keys[i].name_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:1128:3: error: 'add_assoc_stringl' undeclared (first use in this function); did you mean 'add_assoc_stringl_ex'?
add_assoc_stringl(key, "name", keys[i].name, keys[i].name_len, 1);
^~~~~~~~~~~~~~~~~
add_assoc_stringl_ex
/tmp/pear/temp/ssh2/ssh2.c:1129:67: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(key, "blob", keys[i].blob, keys[i].blob_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:1137:76: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
ZVAL_STRINGL(attr, keys[i].attrs[j].value, keys[i].attrs[j].value_len, 1);
^
/tmp/pear/temp/ssh2/ssh2.c:1137:4: error: 'ZVAL_STRINGL' undeclared (first use in this function); did you mean 'TOK_STRING'?
ZVAL_STRINGL(attr, keys[i].attrs[j].value, keys[i].attrs[j].value_len, 1);
^~~~~~~~~~~~
TOK_STRING
/tmp/pear/temp/ssh2/ssh2.c:1138:53: warning: passing argument 2 of 'zend_hash_add' from incompatible pointer type [-Wincompatible-pointer-types]
zend_hash_add(Z_ARRVAL_P(attrs), keys[i].attrs[j].name, keys[i].attrs[j].name_len + 1, (void**)&attr, sizeof(zval*), NULL);
~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:119:30: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'const char *'
ZEND_API zval* ZEND_FASTCALL zend_hash_add(HashTable *ht, zend_string *key,zval *pData);
^~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1138:86: warning: passing argument 3 of 'zend_hash_add' makes pointer from integer without a cast [-Wint-conversion]
zend_hash_add(Z_ARRVAL_P(attrs), keys[i].attrs[j].name, keys[i].attrs[j].name_len + 1, (void**)&attr, sizeof(zval*), NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:119:30: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'long unsigned int'
ZEND_API zval* ZEND_FASTCALL zend_hash_add(HashTable *ht, zend_string *key,zval *pData);
^~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1138:4: error: too many arguments to function 'zend_hash_add'
zend_hash_add(Z_ARRVAL_P(attrs), keys[i].attrs[j].name, keys[i].attrs[j].name_len + 1, (void**)&attr, sizeof(zval*), NULL);
^~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:33,
from /usr/local/include/php/main/php.h:31,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:119:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_add(HashTable *ht, zend_string *key,zval *pData);
^~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_agent':
/tmp/pear/temp/ssh2/ssh2.c:1164:44: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zsession, &username, &username_len) == FAILURE) {
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1164:6: error: too few arguments to function 'zend_parse_parameters'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zsession, &username, &username_len) == FAILURE) {
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1164:98: warning: comparison between pointer and integer
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &zsession, &username, &username_len) == FAILURE) {
^~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:145:30: error: expected expression before 'LIBSSH2_SESSION'
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session); \
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1168:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:24: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1168:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/php_ssh2.h:147:2: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Connection already authenticated"); \
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1168:2: note: in expansion of macro 'SSH2_FETCH_NONAUTHENTICATED_SESSION'
SSH2_FETCH_NONAUTHENTICATED_SESSION(session, zsession);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1174:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "\"publickey\" authentication is not supported");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1174:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "\"publickey\" authentication is not supported");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1182:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure initializing ssh-agent support");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1182:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure initializing ssh-agent support");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1187:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure connecting to ssh-agent");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1187:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure connecting to ssh-agent");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1193:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure requesting identities to ssh-agent");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1193:3: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure requesting identities to ssh-agent");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1203:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't continue authentication");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1203:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't continue authentication");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1210:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure obtaining identity from ssh-agent support");
^~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:1210:4: error: too few arguments to function 'php_error_docref'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failure obtaining identity from ssh-agent support");
^~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: At top level:
/tmp/pear/temp/ssh2/ssh2.c:1234:35: error: unknown type name 'zend_rsrc_list_entry'; did you mean 'zend_rsrc_list_dtors_entry'?
static void php_ssh2_session_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/tmp/pear/temp/ssh2/ssh2.c:1264:36: error: unknown type name 'zend_rsrc_list_entry'; did you mean 'zend_rsrc_list_dtors_entry'?
static void php_ssh2_listener_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/tmp/pear/temp/ssh2/ssh2.c:1274:39: error: unknown type name 'zend_rsrc_list_entry'; did you mean 'zend_rsrc_list_dtors_entry'?
static void php_ssh2_pkey_subsys_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC)
^~~~~~~~~~~~~~~~~~~~
zend_rsrc_list_dtors_entry
/tmp/pear/temp/ssh2/ssh2.c: In function 'zm_startup_ssh2':
/tmp/pear/temp/ssh2/ssh2.c:1288:55: error: 'php_ssh2_session_dtor' undeclared (first use in this function); did you mean 'php_ssh2_session_data'?
le_ssh2_session  = zend_register_list_destructors_ex(php_ssh2_session_dtor, NULL, PHP_SSH2_SESSION_RES_NAME, module_number);
^~~~~~~~~~~~~~~~~~~~~
php_ssh2_session_data
/tmp/pear/temp/ssh2/ssh2.c:1288:55: warning: passing argument 1 of 'zend_register_list_destructors_ex' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:42:65: note: expected 'rsrc_dtor_func_t' {aka 'void (*)(struct _zend_resource *)'} but argument is of type 'const zend_internal_arg_info *' {aka 'const struct _zend_internal_arg_info *'}
ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld, rsrc_dtor_func_t pld, const char *type_name, int module_number);
~~~~~~~~~~~~~~~~~^~
/tmp/pear/temp/ssh2/ssh2.c:1289:55: error: 'php_ssh2_listener_dtor' undeclared (first use in this function); did you mean 'php_ssh2_listener_data'?
le_ssh2_listener = zend_register_list_destructors_ex(php_ssh2_listener_dtor, NULL, PHP_SSH2_LISTENER_RES_NAME, module_number);
^~~~~~~~~~~~~~~~~~~~~~
php_ssh2_listener_data
/tmp/pear/temp/ssh2/ssh2.c:1289:55: warning: passing argument 1 of 'zend_register_list_destructors_ex' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:42:65: note: expected 'rsrc_dtor_func_t' {aka 'void (*)(struct _zend_resource *)'} but argument is of type 'const zend_internal_arg_info *' {aka 'const struct _zend_internal_arg_info *'}
ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld, rsrc_dtor_func_t pld, const char *type_name, int module_number);
~~~~~~~~~~~~~~~~~^~
/tmp/pear/temp/ssh2/ssh2.c:1290:52: error: 'php_ssh2_sftp_dtor' undeclared (first use in this function); did you mean 'php_ssh2_sftp_data'?
le_ssh2_sftp  = zend_register_list_destructors_ex(php_ssh2_sftp_dtor, NULL, PHP_SSH2_SFTP_RES_NAME, module_number);
^~~~~~~~~~~~~~~~~~
php_ssh2_sftp_data
/tmp/pear/temp/ssh2/ssh2.c:1290:52: warning: passing argument 1 of 'zend_register_list_destructors_ex' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:42:65: note: expected 'rsrc_dtor_func_t' {aka 'void (*)(struct _zend_resource *)'} but argument is of type 'const zend_internal_arg_info *' {aka 'const struct _zend_internal_arg_info *'}
ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld, rsrc_dtor_func_t pld, const char *type_name, int module_number);
~~~~~~~~~~~~~~~~~^~
/tmp/pear/temp/ssh2/ssh2.c:1291:58: error: 'php_ssh2_pkey_subsys_dtor' undeclared (first use in this function); did you mean 'php_ssh2_pkey_subsys_data'?
le_ssh2_pkey_subsys = zend_register_list_destructors_ex(php_ssh2_pkey_subsys_dtor, NULL, PHP_SSH2_PKEY_SUBSYS_RES_NAME, module_number);
^~~~~~~~~~~~~~~~~~~~~~~~~
php_ssh2_pkey_subsys_data
/tmp/pear/temp/ssh2/ssh2.c:1291:58: warning: passing argument 1 of 'zend_register_list_destructors_ex' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:35,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:42:65: note: expected 'rsrc_dtor_func_t' {aka 'void (*)(struct _zend_resource *)'} but argument is of type 'const zend_internal_arg_info *' {aka 'const struct _zend_internal_arg_info *'}
ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld, rsrc_dtor_func_t pld, const char *type_name, int module_number);
~~~~~~~~~~~~~~~~~^~
/tmp/pear/temp/ssh2/ssh2.c:1322:86: error: expected ')' before 'TSRMLS_CC'
return (php_register_url_stream_wrapper("ssh2.shell", &php_ssh2_stream_wrapper_shell TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1323:78: error: expected ')' before 'TSRMLS_CC'
php_register_url_stream_wrapper("ssh2.exec", &php_ssh2_stream_wrapper_exec TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1324:82: error: expected ')' before 'TSRMLS_CC'
php_register_url_stream_wrapper("ssh2.tunnel", &php_ssh2_stream_wrapper_tunnel TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1325:76: error: expected ')' before 'TSRMLS_CC'
php_register_url_stream_wrapper("ssh2.scp", &php_ssh2_stream_wrapper_scp TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1326:71: error: expected ')' before 'TSRMLS_CC'
php_register_url_stream_wrapper("ssh2.sftp", &php_ssh2_sftp_wrapper TSRMLS_CC) == SUCCESS) ? SUCCESS : FAILURE;
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c: In function 'zm_shutdown_ssh2':
/tmp/pear/temp/ssh2/ssh2.c:1334:56: error: expected ')' before 'TSRMLS_CC'
return (php_unregister_url_stream_wrapper("ssh2.shell" TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1335:49: error: expected ')' before 'TSRMLS_CC'
php_unregister_url_stream_wrapper("ssh2.exec" TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1336:51: error: expected ')' before 'TSRMLS_CC'
php_unregister_url_stream_wrapper("ssh2.tunnel" TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1337:48: error: expected ')' before 'TSRMLS_CC'
php_unregister_url_stream_wrapper("ssh2.scp" TSRMLS_CC) == SUCCESS &&
^~~~~~~~~~
)
/tmp/pear/temp/ssh2/ssh2.c:1338:49: error: expected ')' before 'TSRMLS_CC'
php_unregister_url_stream_wrapper("ssh2.sftp" TSRMLS_CC) == SUCCESS) ? SUCCESS : FAILURE;
^~~~~~~~~~
)
make: *** [Makefile:209: ssh2.lo] Error 1
ERROR: `make' failed