php-ext.com / druid (from dev 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 libcurl4-openssl-dev && \
    rm -rf /var/lib/apt/lists/*
RUN git clone --recursive --depth=1 https://github.com/SeasX/PHP-Druid /tmp/ext-src && \
    cd /tmp/ext-src && \
    phpize && \
    ./configure --with-druid && \
    make && \
    make test
Build output FAIL 11ss
Step 1/4 : FROM php:8.0.5-zts-buster
---> e89b8bc8c67a
Step 2/4 : WORKDIR /tmp
---> Running in bd4649df1a8d
Removing intermediate container bd4649df1a8d
---> 77205612f34e
Step 3/4 : RUN apt update && apt install -y --no-install-recommends git subversion autoconf build-essential && apt install -y --no-install-recommends libcurl4-openssl-dev && rm -rf /var/lib/apt/lists/*
---> Running in 379b134c2bc8


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 (5867 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 (84.0 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.
Suggested packages:
libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev
libssl-dev zlib1g-dev
The following NEW packages will be installed:
libcurl4-openssl-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 420 kB of archives.
After this operation, 1524 kB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main amd64 libcurl4-openssl-dev amd64 7.64.0-4+deb10u2 [420 kB]
debconf: delaying package configuration, since apt-utils is not installed

Fetched 420 kB in 0s (26.6 MB/s)
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(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 .../libcurl4-openssl-dev_7.64.0-4+deb10u2_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u2) ...
Setting up libcurl4-openssl-dev:amd64 (7.64.0-4+deb10u2) ...
Removing intermediate container 379b134c2bc8
---> 4fe8c0313ed3
Step 4/4 : RUN git clone --recursive --depth=1 https://github.com/SeasX/PHP-Druid /tmp/ext-src && cd /tmp/ext-src && phpize && ./configure --with-druid && make && make test
---> Running in 4fa3410ccb96
Cloning into '/tmp/ext-src'...

Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
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 druid support...
yes, shared
checking for curl protocol support...
yes, shared
checking for cURL in default path...
found in /usr/local
checking for cURL 7.10.5 or greater...
libcurl 7.64.0
checking for curl_easy_perform in -lcurl...
yes
checking for curl_version_info in -lcurl...
yes
checking for curl_easy_strerror in -lcurl...
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
/bin/bash /tmp/ext-src/libtool --mode=compile cc -I. -I/tmp/ext-src -I/tmp/ext-src/include -I/tmp/ext-src/main -I/tmp/ext-src -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 -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2    -c /tmp/ext-src/druid.c -o druid.lo
mkdir .libs
cc -I. -I/tmp/ext-src -I/tmp/ext-src/include -I/tmp/ext-src/main -I/tmp/ext-src -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 -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /tmp/ext-src/druid.c  -fPIC -DPIC -o .libs/druid.o
In file included from /tmp/ext-src/druid.c:25:
/tmp/ext-src/php_druid.h:126:1: warning: parameter names (without types) in function declaration
 int druid_php_rand(TSRMLS_D);
 ^~~

/tmp/ext-src/php_druid.h:127:34: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 char *druid_get_host(zval *druid TSRMLS_DC);
                                  ^~~~~~~~~

/tmp/ext-src/php_druid.h:128:78: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void druid_getApi(zval *return_value, zval *druid, char *request_json TSRMLS_DC);
                                                                              ^~~~~~~~~

/tmp/ext-src/php_druid.h:129:75: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 int druid_get_debug_info(zval *druid,CURL *curl_handle,char *request_json TSRMLS_DC);
                                                                           ^~~~~~~~~

/tmp/ext-src/php_druid.h:130:90: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 int druid_get_contents(zval *druid,char *request_json, struct druidCurlResult *resultStr TSRMLS_DC);
                                                                                          ^~~~~~~~~

/tmp/ext-src/php_druid.h:131:53: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 char *druid_file_get_contents_by_tpl(char *filename TSRMLS_DC);
                                                     ^~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/tmp/ext-src/druid.c:142:73: error: 'ZEND_ACC_DTOR' undeclared here (not in a function); did you mean 'ZEND_ACC_CTOR'?
     PHP_ME(DRUID_NAME, __destruct,              NULL, ZEND_ACC_PUBLIC | ZEND_ACC_DTOR)
                                                                         ^~~~~~~~~~~~~
/usr/local/include/php/Zend/zend_API.h:77:162: note: in definition of macro 'ZEND_RAW_FENTRY'
 #define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags)   { zend_name, name, arg_info, (uint32_t) (sizeof(arg_info)/sizeof(struct _zend_internal_arg_info)-1), flags },
                                                                                                                                                                  ^~~~~
/usr/local/include/php/main/php.h:388:25: note: in expansion of macro 'ZEND_ME'
 #define PHP_ME          ZEND_ME
                         ^~~~~~~
/tmp/ext-src/druid.c:142:5: note: in expansion of macro 'PHP_ME'
     PHP_ME(DRUID_NAME, __destruct,              NULL, ZEND_ACC_PUBLIC | ZEND_ACC_DTOR)
     ^~~~~~

/tmp/ext-src/druid.c: In function 'zm_startup_druid':

/tmp/ext-src/druid.c:211:106: error: expected ')' before 'TSRMLS_CC'
     zend_declare_class_constant_stringl(druid_ce,ZEND_STRL("DRUID_VERSION"),ZEND_STRL(PHP_DRUID_VERSION) TSRMLS_CC);
                                                                                                          ^~~~~~~~~

/tmp/ext-src/druid.c:212:112: error: expected ')' before 'TSRMLS_CC'
     zend_declare_class_constant_stringl(druid_ce,ZEND_STRL("DRUID_CONTENT_TYPE"),ZEND_STRL(DRUID_CONTENT_TYPE) TSRMLS_CC);
                                                                                                                ^~~~~~~~~

/tmp/ext-src/druid.c:213:120: error: expected ')' before 'TSRMLS_CC'
     zend_declare_class_constant_stringl(druid_ce,ZEND_STRL("DRUID_INSTANCE_DEFAULT"),ZEND_STRL(DRUID_INSTANCE_DEFAULT) TSRMLS_CC);
                                                                                                                        ^~~~~~~~~

/tmp/ext-src/druid.c:215:102: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_null(druid_ce, ZEND_STRL(DRUID_NAME), ZEND_ACC_STATIC | ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                      ^~~~~~~~~

/tmp/ext-src/druid.c:216:97: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_bool(druid_ce, ZEND_STRL(DRUID_PROPERTY_DEBUG), 0, ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                 ^~~~~~~~~

/tmp/ext-src/druid.c:217:97: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_null(druid_ce, ZEND_STRL(DRUID_PROPERTY_TPL_PATH), ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                 ^~~~~~~~~

/tmp/ext-src/druid.c:219:102: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_null(druid_ce, ZEND_STRL(DRUID_PROPERTY_RESPONSE_INFO), ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                      ^~~~~~~~~

/tmp/ext-src/druid.c:220:104: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_long(druid_ce, ZEND_STRL(DRUID_PROPERTY_RESPONSE_CODE),0, ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                        ^~~~~~~~~

/tmp/ext-src/druid.c:222:102: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_long(druid_ce, ZEND_STRL(DRUID_PROPERTY_CURL_ERR_NO),0, ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                      ^~~~~~~~~

/tmp/ext-src/druid.c:223:101: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_null(druid_ce, ZEND_STRL(DRUID_PROPERTY_CURL_ERR_STR), ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                     ^~~~~~~~~

/tmp/ext-src/druid.c:225:94: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_null(druid_ce, ZEND_STRL(DRUID_PROPERTY_HOSTS), ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                              ^~~~~~~~~

/tmp/ext-src/druid.c:226:101: error: expected ')' before 'TSRMLS_CC'
     zend_declare_property_bool(druid_ce, ZEND_STRL(DRUID_PROPERTY_HOST_RAND), 0, ZEND_ACC_PROTECTED TSRMLS_CC);
                                                                                                     ^~~~~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getInstance':

/tmp/ext-src/druid.c:282:35: error: expected ')' before 'TSRMLS_CC'
     if (zend_parse_parameters(argc TSRMLS_CC, "s", &instance_name, &instance_name_len) == FAILURE)
                                   ^~~~~~~~~~
                                   )

/tmp/ext-src/druid.c:282:9: error: too few arguments to function 'zend_parse_parameters'
     if (zend_parse_parameters(argc TSRMLS_CC, "s", &instance_name, &instance_name_len) == FAILURE)
         ^~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:282:88: warning: comparison between pointer and integer
     if (zend_parse_parameters(argc TSRMLS_CC, "s", &instance_name, &instance_name_len) == FAILURE)
                                                                                        ^~

/tmp/ext-src/druid.c:284:142: error: expected ')' before 'TSRMLS_CC'
         zend_throw_exception(php_com_exception_class_entry,"The instance_name can not be empty,you can use Druid::DRUID_INSTANCE_DEFAULT",999 TSRMLS_CC);
                                                                                                                                              ^~~~~~~~~~
                                                                                                                                              )

/tmp/ext-src/druid.c:300:86: error: expected ')' before 'TSRMLS_CC'
     get_instance_array = zend_read_static_property(druid_ce, ZEND_STRL(DRUID_NAME), 1 TSRMLS_CC);
                                                                                      ^~~~~~~~~~
                                                                                      )

/tmp/ext-src/druid.c:351:47: warning: passing argument 2 of 'zend_update_property_long' from incompatible pointer type [-Wincompatible-pointer-types]
     DRUID_ZEND_UPDATE_PROPERTY_LONG(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_CURL_ERR_NO), 0);
                                               ^~~~~~~~
/tmp/ext-src/druid.c:55:82: note: in definition of macro 'DRUID_ZEND_UPDATE_PROPERTY_LONG'
 #define DRUID_ZEND_UPDATE_PROPERTY_LONG(ce,z,zl,zn) zend_update_property_long(ce,z,zl,zn)
                                                                                  ^

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:390:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_long(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_long value);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:352:95: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_string(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_CURL_ERR_STR), "" TSRMLS_CC);
                                                                                               ^~~~~~~~~~
                                                                                               )

/tmp/ext-src/druid.c:352:43: warning: passing argument 2 of 'zend_update_property_string' from incompatible pointer type [-Wincompatible-pointer-types]
     zend_update_property_string(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_CURL_ERR_STR), "" TSRMLS_CC);
                                           ^~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:393:81: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_string(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, const char *value);
                                                                    ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:354:99: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_bool(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_DEBUG), DRUID_G(debug) TSRMLS_CC);
                                                                                                   ^~~~~~~~~

/tmp/ext-src/druid.c:354:41: warning: passing argument 2 of 'zend_update_property_bool' from incompatible pointer type [-Wincompatible-pointer-types]
     zend_update_property_bool(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_DEBUG), DRUID_G(debug) TSRMLS_CC);
                                         ^~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:389:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_long value);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:356:107: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_string(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_TPL_PATH), DRUID_G(tpl_path) TSRMLS_CC);
                                                                                                           ^~~~~~~~~

/tmp/ext-src/druid.c:356:43: warning: passing argument 2 of 'zend_update_property_string' from incompatible pointer type [-Wincompatible-pointer-types]
     zend_update_property_string(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_TPL_PATH), DRUID_G(tpl_path) TSRMLS_CC);
                                           ^~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:393:81: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_string(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, const char *value);
                                                                    ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:358:47: warning: passing argument 2 of 'zend_update_property_long' from incompatible pointer type [-Wincompatible-pointer-types]
     DRUID_ZEND_UPDATE_PROPERTY_LONG(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_RESPONSE_CODE), 0);
                                               ^~~~~~~~
/tmp/ext-src/druid.c:55:82: note: in definition of macro 'DRUID_ZEND_UPDATE_PROPERTY_LONG'
 #define DRUID_ZEND_UPDATE_PROPERTY_LONG(ce,z,zl,zn) zend_update_property_long(ce,z,zl,zn)
                                                                                  ^

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:390:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_long(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_long value);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:359:91: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_null(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_RESPONSE_INFO) TSRMLS_CC);
                                                                                           ^~~~~~~~~

/tmp/ext-src/druid.c:359:41: warning: passing argument 2 of 'zend_update_property_null' from incompatible pointer type [-Wincompatible-pointer-types]
     zend_update_property_null(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_RESPONSE_INFO) TSRMLS_CC);
                                         ^~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:388:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_null(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:361:83: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_null(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_HOSTS) TSRMLS_CC);
                                                                                   ^~~~~~~~~

/tmp/ext-src/druid.c:361:41: warning: passing argument 2 of 'zend_update_property_null' from incompatible pointer type [-Wincompatible-pointer-types]
     zend_update_property_null(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_HOSTS) TSRMLS_CC);
                                         ^~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:388:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_null(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:362:89: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_bool(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_HOST_RAND), 0 TSRMLS_CC);
                                                                                         ^~~~~~~~~~
                                                                                         )

/tmp/ext-src/druid.c:362:41: warning: passing argument 2 of 'zend_update_property_bool' from incompatible pointer type [-Wincompatible-pointer-types]
     zend_update_property_bool(druid_ce, instance, ZEND_STRL(DRUID_PROPERTY_HOST_RAND), 0 TSRMLS_CC);
                                         ^~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:389:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_long value);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:367:88: error: expected ')' before 'TSRMLS_CC'
         zend_update_static_property(druid_ce, ZEND_STRL(DRUID_NAME), get_instance_array TSRMLS_CC);
                                                                                        ^~~~~~~~~~
                                                                                        )

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME___destruct':

/tmp/ext-src/druid.c:387:92: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_null(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_RESPONSE_INFO) TSRMLS_CC);
                                                                                            ^~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property_null' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:387:41: note: in expansion of macro 'getThis'
     zend_update_property_null(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_RESPONSE_INFO) TSRMLS_CC);
                                         ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:388:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_null(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:388:87: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_null(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_TPL_PATH) TSRMLS_CC);
                                                                                       ^~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property_null' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:388:41: note: in expansion of macro 'getThis'
     zend_update_property_null(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_TPL_PATH) TSRMLS_CC);
                                         ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:388:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_null(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:389:84: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_null(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_HOSTS) TSRMLS_CC);
                                                                                    ^~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property_null' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:389:41: note: in expansion of macro 'getThis'
     zend_update_property_null(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_HOSTS) TSRMLS_CC);
                                         ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:388:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_null(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:391:70: error: expected ')' before 'TSRMLS_CC'
     zend_update_static_property_null(druid_ce, ZEND_STRL(DRUID_NAME) TSRMLS_CC);
                                                                      ^~~~~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_debugWitch':

/tmp/ext-src/druid.c:409:47: error: expected ')' before 'TSRMLS_CC'
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &debug) == FAILURE)
                                               ^~~~~~~~~

/tmp/ext-src/druid.c:409:9: error: too few arguments to function 'zend_parse_parameters'
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &debug) == FAILURE)
         ^~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:409:71: warning: comparison between pointer and integer
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &debug) == FAILURE)
                                                                       ^~

/tmp/ext-src/druid.c:414:90: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_bool(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_DEBUG), debug TSRMLS_CC);
                                                                                          ^~~~~~~~~~
                                                                                          )

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property_bool' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:414:41: note: in expansion of macro 'getThis'
     zend_update_property_bool(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_DEBUG), debug TSRMLS_CC);
                                         ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:389:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_long value);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getDebugWitch':

/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_read_property' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:52:66: note: in definition of macro 'DRUID_ZEND_READ_PROPERTY'
 #define DRUID_ZEND_READ_PROPERTY(ce,z,zl) zend_read_property(ce, z, zl, 1, NULL)
                                                                  ^
/tmp/ext-src/druid.c:422:48: note: in expansion of macro 'getThis'
     debug = DRUID_ZEND_READ_PROPERTY(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_DEBUG));
                                                ^~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:407:16: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_bool silent, zval *rv);
                ^~~~~~~~~~~~~~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_setDruidHosts':

/tmp/ext-src/druid.c:432:35: error: expected ')' before 'TSRMLS_CC'
     if (zend_parse_parameters(argc TSRMLS_CC, "z", &hosts) == FAILURE)
                                   ^~~~~~~~~~
                                   )

/tmp/ext-src/druid.c:432:9: error: too few arguments to function 'zend_parse_parameters'
     if (zend_parse_parameters(argc TSRMLS_CC, "z", &hosts) == FAILURE)
         ^~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:432:60: warning: comparison between pointer and integer
     if (zend_parse_parameters(argc TSRMLS_CC, "z", &hosts) == FAILURE)
                                                            ^~

/tmp/ext-src/druid.c:439:31: error: expected ')' before 'TSRMLS_CC'
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument is not an array");
                               ^~~~~~~~~

/tmp/ext-src/druid.c:439:9: error: too few arguments to function 'php_error_docref'
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "The argument is not an array");
         ^~~~~~~~~~~~~~~~

In file included from /tmp/ext-src/druid.c:21:
/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, ...)
                       ^~~~~~~~~~~~~~~~

/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:53:73: note: in definition of macro 'DRUID_ZEND_UPDATE_PROPERTY'
 #define DRUID_ZEND_UPDATE_PROPERTY(ce,z,zl,zn) zend_update_property(ce, z, zl, zn)
                                                                         ^
/tmp/ext-src/druid.c:443:42: note: in expansion of macro 'getThis'
     DRUID_ZEND_UPDATE_PROPERTY(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_HOSTS), hosts);
                                          ^~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:387:74: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zval *value);
                                                             ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c:444:90: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_bool(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_HOST_RAND), 1 TSRMLS_CC);
                                                                                          ^~~~~~~~~~
                                                                                          )

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property_bool' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:444:41: note: in expansion of macro 'getThis'
     zend_update_property_bool(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_HOST_RAND), 1 TSRMLS_CC);
                                         ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:389:79: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_bool(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_long value);
                                                                  ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getDruidHosts':

/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_read_property' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:52:66: note: in definition of macro 'DRUID_ZEND_READ_PROPERTY'
 #define DRUID_ZEND_READ_PROPERTY(ce,z,zl) zend_read_property(ce, z, zl, 1, NULL)
                                                                  ^
/tmp/ext-src/druid.c:452:48: note: in expansion of macro 'getThis'
     hosts = DRUID_ZEND_READ_PROPERTY(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_HOSTS));
                                                ^~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:407:16: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_bool silent, zval *rv);
                ^~~~~~~~~~~~~~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_setTplPath':

/tmp/ext-src/druid.c:474:47: error: expected ')' before 'TSRMLS_CC'
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &tpl_path, &tpl_path_len) == FAILURE)
                                               ^~~~~~~~~

/tmp/ext-src/druid.c:474:9: error: too few arguments to function 'zend_parse_parameters'
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &tpl_path, &tpl_path_len) == FAILURE)
         ^~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:474:89: warning: comparison between pointer and integer
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &tpl_path, &tpl_path_len) == FAILURE)
                                                                                         ^~

/tmp/ext-src/druid.c:479:98: error: expected ')' before 'TSRMLS_CC'
     zend_update_property_string(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_TPL_PATH), tpl_path TSRMLS_CC);
                                                                                                  ^~~~~~~~~~
                                                                                                  )

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_update_property_string' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:479:43: note: in expansion of macro 'getThis'
     zend_update_property_string(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_TPL_PATH), tpl_path TSRMLS_CC);
                                           ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:393:81: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API void zend_update_property_string(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, const char *value);
                                                                    ~~~~~~~~~~~~~^~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getTplPath':

/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_read_property' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:52:66: note: in definition of macro 'DRUID_ZEND_READ_PROPERTY'
 #define DRUID_ZEND_READ_PROPERTY(ce,z,zl) zend_read_property(ce, z, zl, 1, NULL)
                                                                  ^
/tmp/ext-src/druid.c:486:57: note: in expansion of macro 'getThis'
     zval *tpl_path = DRUID_ZEND_READ_PROPERTY(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_TPL_PATH));
                                                         ^~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:407:16: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_bool silent, zval *rv);
                ^~~~~~~~~~~~~~~~~~

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getData':

/tmp/ext-src/druid.c:696:35: error: expected ')' before 'TSRMLS_CC'
     if (zend_parse_parameters(argc TSRMLS_CC, "s|z", &request, &request_len, &content) == FAILURE)
                                   ^~~~~~~~~~
                                   )

/tmp/ext-src/druid.c:696:9: error: too few arguments to function 'zend_parse_parameters'
     if (zend_parse_parameters(argc TSRMLS_CC, "s|z", &request, &request_len, &content) == FAILURE)
         ^~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:696:88: warning: comparison between pointer and integer
     if (zend_parse_parameters(argc TSRMLS_CC, "s|z", &request, &request_len, &content) == FAILURE)
                                                                                        ^~

/tmp/ext-src/druid.c:703:31: error: expected ')' before 'TSRMLS_CC'
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "The second argument is not an array");
                               ^~~~~~~~~

/tmp/ext-src/druid.c:703:9: error: too few arguments to function 'php_error_docref'
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "The second argument is not an array");
         ^~~~~~~~~~~~~~~~

In file included from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:716:5: warning: implicit declaration of function 'druid_getApi'; did you mean 'sched_getcpu'? [-Wimplicit-function-declaration]
     druid_getApi(return_value, getThis(), request_json TSRMLS_CC);
     ^~~~~~~~~~~~
     sched_getcpu

/tmp/ext-src/druid.c:716:55: error: expected ')' before 'TSRMLS_CC'
     druid_getApi(return_value, getThis(), request_json TSRMLS_CC);
                                                       ^~~~~~~~~~
                                                       )

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getDataByTpl':

/tmp/ext-src/druid.c:738:35: error: expected ')' before 'TSRMLS_CC'
     if (zend_parse_parameters(argc TSRMLS_CC, "s|z", &tpl, &tpl_len, &content) == FAILURE)
                                   ^~~~~~~~~~
                                   )

/tmp/ext-src/druid.c:738:9: error: too few arguments to function 'zend_parse_parameters'
     if (zend_parse_parameters(argc TSRMLS_CC, "s|z", &tpl, &tpl_len, &content) == FAILURE)
         ^~~~~~~~~~~~~~~~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/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/ext-src/druid.c:738:80: warning: comparison between pointer and integer
     if (zend_parse_parameters(argc TSRMLS_CC, "s|z", &tpl, &tpl_len, &content) == FAILURE)
                                                                                ^~

/tmp/ext-src/druid.c:745:31: error: expected ')' before 'TSRMLS_CC'
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "The second argument is not an array");
                               ^~~~~~~~~

/tmp/ext-src/druid.c:745:9: error: too few arguments to function 'php_error_docref'
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "The second argument is not an array");
         ^~~~~~~~~~~~~~~~

In file included from /tmp/ext-src/druid.c:21:
/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, ...)
                       ^~~~~~~~~~~~~~~~

/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_read_property' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:52:66: note: in definition of macro 'DRUID_ZEND_READ_PROPERTY'
 #define DRUID_ZEND_READ_PROPERTY(ce,z,zl) zend_read_property(ce, z, zl, 1, NULL)
                                                                  ^
/tmp/ext-src/druid.c:749:51: note: in expansion of macro 'getThis'
     tpl_path = DRUID_ZEND_READ_PROPERTY(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_TPL_PATH));
                                                   ^~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:407:16: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_bool silent, zval *rv);
                ^~~~~~~~~~~~~~~~~~

/tmp/ext-src/druid.c:752:15: warning: implicit declaration of function 'druid_file_get_contents_by_tpl'; did you mean 'zif_ob_get_contents'? [-Wimplicit-function-declaration]
     request = druid_file_get_contents_by_tpl(filename TSRMLS_CC);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               zif_ob_get_contents

/tmp/ext-src/druid.c:752:54: error: expected ')' before 'TSRMLS_CC'
     request = druid_file_get_contents_by_tpl(filename TSRMLS_CC);
                                                      ^~~~~~~~~~
                                                      )

/tmp/ext-src/druid.c:752:13: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     request = druid_file_get_contents_by_tpl(filename TSRMLS_CC);
             ^

/tmp/ext-src/druid.c:769:55: error: expected ')' before 'TSRMLS_CC'
     druid_getApi(return_value, getThis(), request_json TSRMLS_CC);
                                                       ^~~~~~~~~~
                                                       )

/tmp/ext-src/druid.c: In function 'zim_DRUID_NAME_getDebugInfo':

/usr/local/include/php/Zend/zend_API.h:416:73: warning: passing argument 2 of 'zend_read_property' from incompatible pointer type [-Wincompatible-pointer-types]
 #define getThis()       ((Z_TYPE_P(ZEND_THIS) == IS_OBJECT) ? ZEND_THIS : NULL)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/ext-src/druid.c:52:66: note: in definition of macro 'DRUID_ZEND_READ_PROPERTY'
 #define DRUID_ZEND_READ_PROPERTY(ce,z,zl) zend_read_property(ce, z, zl, 1, NULL)
                                                                  ^
/tmp/ext-src/druid.c:780:53: note: in expansion of macro 'getThis'
     zval *info = DRUID_ZEND_READ_PROPERTY(druid_ce, getThis(), ZEND_STRL(DRUID_PROPERTY_RESPONSE_INFO));
                                                     ^~~~~~~

In file included from /usr/local/include/php/main/php.h:35,
                 from /tmp/ext-src/druid.c:21:
/usr/local/include/php/Zend/zend_API.h:407:16: note: expected 'zend_object *' {aka 'struct _zend_object *'} but argument is of type 'zval *' {aka 'struct _zval_struct *'}
 ZEND_API zval *zend_read_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length, zend_bool silent, zval *rv);
                ^~~~~~~~~~~~~~~~~~

/tmp/ext-src/druid.c: At top level:

/tmp/ext-src/druid.c:785:53: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 char *druid_file_get_contents_by_tpl(char *filename TSRMLS_DC)
                                                     ^~~~~~~~~

/tmp/ext-src/druid.c:833:78: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void druid_getApi(zval *return_value, zval *druid, char *request_json TSRMLS_DC)
                                                                              ^~~~~~~~~

/tmp/ext-src/druid.c: In function 'druid_php_rand':

/tmp/ext-src/druid.c:880:5: warning: type of 'TSRMLS_D' defaults to 'int' [-Wimplicit-int]
 int druid_php_rand(TSRMLS_D)
     ^~~~~~~~~~~~~~

/tmp/ext-src/druid.c:883:24: error: 'TSRMLS_C' undeclared (first use in this function); did you mean 'TSRMLS_D'?
     rnd_idx = php_rand(TSRMLS_C);
                        ^~~~~~~~
                        TSRMLS_D

/tmp/ext-src/druid.c:883:24: note: each undeclared identifier is reported only once for each function it appears in

/tmp/ext-src/druid.c:883:15: error: too many arguments to function 'php_rand'
     rnd_idx = php_rand(TSRMLS_C);
               ^~~~~~~~

In file included from /tmp/ext-src/druid.c:26:
/usr/local/include/php/ext/standard/php_rand.h:70:18: note: declared here
 PHPAPI zend_long php_rand(void);
                  ^~~~~~~~

/tmp/ext-src/druid.c: At top level:

/tmp/ext-src/druid.c:893:34: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 char *druid_get_host(zval *druid TSRMLS_DC)
                                  ^~~~~~~~~

/tmp/ext-src/druid.c:976:75: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 int druid_get_debug_info(zval *druid,CURL *curl_handle,char *request_json TSRMLS_DC)
                                                                           ^~~~~~~~~

/tmp/ext-src/druid.c:1090:88: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 int druid_get_contents(zval *druid, char *request_json, struct druidCurlResult *result TSRMLS_DC)
                                                                                        ^~~~~~~~~

make: *** [Makefile:209: druid.lo] Error 1