php-ext.com / ssh2 (from pecl using PHP 7.3.28-zts-buster)
Dockerfile
FROM php:7.3.28-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:7.3.28-zts-buster
---> b7f4c7bf7df3
Step 2/4 : WORKDIR /tmp
---> Running in b268f519a34f
Removing intermediate container b268f519a34f
---> bd80d46de4b7
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 85f6ee9d9c18
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 (5866 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.1 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 ...
12684 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 (3018 kB/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 ...
13806 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 85f6ee9d9c18
---> f51aafd4b964
Step 4/4 : RUN pecl install --force ssh2 && pecl run-tests ssh2
---> Running in 2d7e62e4e68a
warning: pecl/ssh2 requires PHP (version >= 4.0.0, version <= 6.0.0), installed version is 7.3.28
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: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
libssh2 prefix?
[autodetect]
:
building in /tmp/pear/temp/pear-build-defaultuserXeAFWt/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 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 whether cc understands -c and -o together... yes
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-20180731
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for re2c... re2c
checking for re2c version... 1.1.1 (ok)
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 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: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-defaultuserXeAFWt/ssh2-0.13/libtool --mode=compile cc -I. -I/tmp/pear/temp/ssh2 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserXeAFWt/ssh2-0.13/include -I/tmp/pear/temp/pear-build-defaultuserXeAFWt/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 -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-defaultuserXeAFWt/ssh2-0.13/include -I/tmp/pear/temp/pear-build-defaultuserXeAFWt/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:10: warning: declaration does not declare anything
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:22,
from /tmp/pear/temp/ssh2/ssh2.c:27:
/usr/local/include/php/main/php_network.h:28: 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: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/ssh2.c: In function 'php_ssh2_debug_cb':
/tmp/pear/temp/ssh2/php_ssh2.h:106:43: error: expected identifier or '(' before '=' token
#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:110:2: note: each undeclared identifier is reported only once for each function it appears in
/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);
^
In file included from /usr/local/include/php/main/php.h:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/tmp/pear/temp/ssh2/ssh2.c:121:81: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types]
if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL TSRMLS_CC)) {
^~~~
/usr/local/include/php/Zend/zend_API.h:474:73: note: in definition of macro 'call_user_function_ex'
_call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
^~~~~~
/usr/local/include/php/Zend/zend_API.h:469:117: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval ***' {aka 'struct _zval_struct ***'}
ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
~~~~~^~~~~~~~
/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:35,
from /usr/local/include/php/main/php.h:33,
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:35,
from /usr/local/include/php/main/php.h:33,
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:35,
from /usr/local/include/php/main/php.h:33,
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:43: error: expected identifier or '(' before '=' token
#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
In file included from /usr/local/include/php/main/php.h:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/tmp/pear/temp/ssh2/ssh2.c:152:68: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types]
if (FAILURE == call_user_function_ex(NULL, NULL, data->ignore_cb, &zretval, 1, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~
/usr/local/include/php/Zend/zend_API.h:474:48: note: in definition of macro 'call_user_function_ex'
_call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
^~~~~~~~~~
/usr/local/include/php/Zend/zend_API.h:469:78: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
~~~~~~^~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:152:81: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types]
if (FAILURE == call_user_function_ex(NULL, NULL, data->ignore_cb, &zretval, 1, args, 0, NULL TSRMLS_CC)) {
^~~~
/usr/local/include/php/Zend/zend_API.h:474:73: note: in definition of macro 'call_user_function_ex'
_call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
^~~~~~
/usr/local/include/php/Zend/zend_API.h:469:117: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval ***' {aka 'struct _zval_struct ***'}
ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
~~~~~^~~~~~~~
/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:35,
from /usr/local/include/php/main/php.h:33,
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:35,
from /usr/local/include/php/main/php.h:33,
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:43: error: expected identifier or '(' before '=' token
#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
In file included from /usr/local/include/php/main/php.h:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/tmp/pear/temp/ssh2/ssh2.c:186:70: warning: passing argument 3 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types]
if (FAILURE == call_user_function_ex(NULL, NULL, data->macerror_cb, &zretval, 1, args, 0, NULL TSRMLS_CC)) {
^~~~~~~~
/usr/local/include/php/Zend/zend_API.h:474:48: note: in definition of macro 'call_user_function_ex'
_call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
^~~~~~~~~~
/usr/local/include/php/Zend/zend_API.h:469:78: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval **' {aka 'struct _zval_struct **'}
ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
~~~~~~^~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:186:83: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types]
if (FAILURE == call_user_function_ex(NULL, NULL, data->macerror_cb, &zretval, 1, args, 0, NULL TSRMLS_CC)) {
^~~~
/usr/local/include/php/Zend/zend_API.h:474:73: note: in definition of macro 'call_user_function_ex'
_call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
^~~~~~
/usr/local/include/php/Zend/zend_API.h:469:117: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval ***' {aka 'struct _zval_struct ***'}
ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
~~~~~^~~~~~~~
/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:35,
from /usr/local/include/php/main/php.h:33,
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:35,
from /usr/local/include/php/main/php.h:33,
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:43: error: expected identifier or '(' before '=' token
#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);
^
In file included from /usr/local/include/php/main/php.h:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/tmp/pear/temp/ssh2/ssh2.c:230:81: warning: passing argument 5 of '_call_user_function_ex' from incompatible pointer type [-Wincompatible-pointer-types]
if (FAILURE == call_user_function_ex(NULL, NULL, data->disconnect_cb, NULL, 3, args, 0, NULL TSRMLS_CC)) {
^~~~
/usr/local/include/php/Zend/zend_API.h:474:73: note: in definition of macro 'call_user_function_ex'
_call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
^~~~~~
/usr/local/include/php/Zend/zend_API.h:469:117: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'zval ***' {aka 'struct _zval_struct ***'}
ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
~~~~~^~~~~~~~
/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:35,
from /usr/local/include/php/main/php.h:33,
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:35,
from /usr/local/include/php/main/php.h:33,
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:35,
from /usr/local/include/php/main/php.h:33,
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: In function 'php_ssh2_set_callback':
/tmp/pear/temp/ssh2/ssh2.c:253:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(ht, callback, callback_len + 1, (void**)&handler) == FAILURE) {
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:253:6: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(ht, callback, callback_len + 1, (void**)&handler) == FAILURE) {
^~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:253:71: warning: comparison between pointer and integer
if (zend_hash_find(ht, callback, callback_len + 1, (void**)&handler) == FAILURE) {
^~
/tmp/pear/temp/ssh2/ssh2.c:261:2: warning: implicit declaration of function 'ALLOC_INIT_ZVAL' [-Wimplicit-function-declaration]
ALLOC_INIT_ZVAL(copyval);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:269:19: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&data->ignore_cb);
^~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:33,
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:276:19: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&data->debug_cb);
^~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:33,
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:283:19: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&data->macerror_cb);
^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:33,
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:290:19: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(&data->disconnect_cb);
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:33,
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:295:18: warning: passing argument 1 of 'zval_ptr_dtor' from incompatible pointer type [-Wincompatible-pointer-types]
zval_ptr_dtor(©val);
^~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:35,
from /usr/local/include/php/main/php.h:33,
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: 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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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: In function 'php_ssh2_session_connect':
/tmp/pear/temp/ssh2/ssh2.c:338:11: error: too few arguments to function 'php_network_connect_socket_to_host'
socket = php_network_connect_socket_to_host(host, port, SOCK_STREAM, 0, &tv, NULL, NULL, NULL, 0 TSRMLS_CC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/ext/standard/file.h:22,
from /tmp/pear/temp/ssh2/ssh2.c:27:
/usr/local/include/php/main/php_network.h:246:21: note: declared here
PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/php_ssh2.h:105:66: error: 'php_ssh2_session_data' {aka 'struct _php_ssh2_session_data'} has no member named 'tsrm_ls'
#define SSH2_TSRMLS_SET(datap) ((php_ssh2_session_data*)(datap))->tsrm_ls = TSRMLS_C
^~
/tmp/pear/temp/ssh2/ssh2.c:351:2: note: in expansion of macro 'SSH2_TSRMLS_SET'
SSH2_TSRMLS_SET(data);
^~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:351:23: error: expected expression before ';' token
SSH2_TSRMLS_SET(data);
^
/tmp/pear/temp/ssh2/ssh2.c:374:40: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(HASH_OF(methods), "client_to_server", sizeof("client_to_server"), (void**)&container) == SUCCESS &&
^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:374:7: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(HASH_OF(methods), "client_to_server", sizeof("client_to_server"), (void**)&container) == SUCCESS &&
^~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:390:40: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types]
if (zend_hash_find(HASH_OF(methods), "server_to_client", sizeof("server_to_client"), (void**)&container) == SUCCESS &&
^~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:390:7: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(HASH_OF(methods), "server_to_client", sizeof("server_to_client"), (void**)&container) == SUCCESS &&
^~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_connect':
/tmp/pear/temp/ssh2/ssh2.c:465:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE'; did you mean 'ZEND_MAX_RESERVED_RESOURCES'? [-Wimplicit-function-declaration]
ZEND_REGISTER_RESOURCE(return_value, session, le_ssh2_session);
^~~~~~~~~~~~~~~~~~~~~~
ZEND_MAX_RESERVED_RESOURCES
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_methods_negotiated':
/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: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: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: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: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:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:431:14: note: declared here
ZEND_API int 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:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_API.h:430:14: note: declared here
ZEND_API int add_next_index_string(zval *arg, const char *str);
^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_password':
/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/ssh2.c: In function 'zif_ssh2_auth_pubkey_file':
/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/ssh2.c: In function 'zif_ssh2_auth_hostbased_file':
/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/ssh2.c: In function 'zif_ssh2_forward_listen':
/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/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: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: In function 'zif_ssh2_poll':
/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: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:166: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: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: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:37,
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:48: warning: passing argument 2 of 'zend_fetch_resource' makes pointer from integer without a cast [-Wint-conversion]
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:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:61:16: note: expected 'const char *' but argument is of type 'int'
ZEND_API void *zend_fetch_resource(zend_resource *res, const char *resource_type_name, int resource_type);
^~~~~~~~~~~~~~~~~~~
/tmp/pear/temp/ssh2/ssh2.c:895:52: warning: passing argument 3 of 'zend_fetch_resource' makes integer from pointer without a cast [-Wint-conversion]
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:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:61:16: note: expected 'int' but argument is of type 'char *'
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 many 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:37,
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:905:118: warning: passing argument 1 of 'zend_rsrc_list_get_rsrc_type' makes pointer from integer without a cast [-Wint-conversion]
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 /usr/local/include/php/Zend/zend_API.h:26,
from /usr/local/include/php/main/php.h:37,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_list.h:66:22: note: expected 'zend_resource *' {aka 'struct _zend_resource *'} but argument is of type 'int'
ZEND_API const char *zend_rsrc_list_get_rsrc_type(zend_resource *res);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:158:70: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
ZEND_API int 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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:158:28: note: declared here
ZEND_API int ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
^~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_init':
/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/ssh2.c: In function 'zif_ssh2_publickey_add':
/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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:217: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:217: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:214: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:214: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:214: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:214: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
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(©val);
^~~~~~~~~~~~~~~
In file included from /usr/local/include/php/Zend/zend.h:29,
from /usr/local/include/php/main/php.h:33,
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:29,
from /usr/local/include/php/main/php.h:33,
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: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: In function 'zif_ssh2_publickey_list':
/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: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:114: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:114: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:32,
from /usr/local/include/php/main/php.h:33,
from /tmp/pear/temp/ssh2/ssh2.c:25:
/usr/local/include/php/Zend/zend_hash.h:114:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_add(HashTable *ht, zend_string *key,zval *pData);
^~~~~~~~~~~~~
In file included from /tmp/pear/temp/ssh2/ssh2.c:28:
/tmp/pear/temp/ssh2/ssh2.c: In function 'zif_ssh2_auth_agent':
/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/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: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: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: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
make: *** [Makefile:194: ssh2.lo] Error 1
ERROR: `make' failed