php-ext.com / hprose (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 && \
    rm -rf /var/lib/apt/lists/*
RUN git clone --recursive --depth=1 https://github.com/hprose/hprose-pecl /tmp/ext-src && \
    cd /tmp/ext-src && \
    phpize && \
    ./configure --enable-hprose && \
    make && \
    make test
Build output FAIL 9ss
Step 1/4 : FROM php:8.0.5-zts-buster
---> e89b8bc8c67a
Step 2/4 : WORKDIR /tmp
---> Running in bfbf78ae6f78
Removing intermediate container bfbf78ae6f78
---> 0f9250ee8427
Step 3/4 : RUN apt update && apt install -y --no-install-recommends git subversion autoconf build-essential && rm -rf /var/lib/apt/lists/*
---> Running in 8b88be4040e5

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 (5635 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 (86.2 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) ...
Removing intermediate container 8b88be4040e5
---> 3ea7bda0f58b
Step 4/4 : RUN git clone --recursive --depth=1 https://github.com/hprose/hprose-pecl /tmp/ext-src && cd /tmp/ext-src && phpize && ./configure --enable-hprose && make && make test
---> Running in dfec3d3bbb15
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 whether to enable hprose support...
yes, shared
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  -DHAVE_CONFIG_H  -g -O2    -c /tmp/ext-src/php_hprose.c -o php_hprose.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 -DHAVE_CONFIG_H -g -O2 -c /tmp/ext-src/php_hprose.c  -fPIC -DPIC -o .libs/php_hprose.o
In file included from /tmp/ext-src/hprose_tags.h:24,
                 from /tmp/ext-src/php_hprose.c:26:
/tmp/ext-src/hprose_common.h:532:102: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_bool _hprose_class_exists(zend_string *class_name, zend_bool autoload TSRMLS_DC) {
                                                                                                      ^~~~~~~~~

/tmp/ext-src/hprose_common.h:561:105: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_bool hprose_class_exists(char *classname, size_t len, zend_bool autoload TSRMLS_DC) {
                                                                                                         ^~~~~~~~~

/tmp/ext-src/hprose_common.h:571:101: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_bool hprose_has_property(zend_class_entry *ce, zval *obj, zval *prop TSRMLS_DC) {
                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_common.h:743:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API zend_fcall_info_cache __get_fcall_info_cache(zval *obj, char *name, int32_t len TSRMLS_DC);
                                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_common.h:745:86: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_fcall_info_cache _get_fcall_info_cache(zval *callable TSRMLS_DC) {
                                                                                      ^~~~~~~~~

/tmp/ext-src/hprose_common.h:768:120: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API void __function_invoke_args(zend_fcall_info_cache fcc, zval *obj, zval *return_value, zval *param_array TSRMLS_DC);
                                                                                                                        ^~~~~~~~~

/tmp/ext-src/hprose_common.h:769:112: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API void __function_invoke(zend_fcall_info_cache fcc, zval *obj, zval *return_value, zend_bool dtor TSRMLS_DC, const char *params_format, ...);
                                                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_common.h:786:104: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API zend_class_entry *__create_php_object(char *class_name, int32_t len, zval *return_value TSRMLS_DC, const char *params_format, ...);
                                                                                                        ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:27:
/tmp/ext-src/hprose_bytes_io.h:397:101: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline int32_t _hprose_bytes_io_get_string_len(hprose_bytes_io *_this, int32_t n TSRMLS_DC) {
                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_bytes_io.h:453:126: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_string *_hprose_bytes_io_read_pstring(hprose_bytes_io *_this, int32_t n, zend_bool persistent TSRMLS_DC) {
                                                                                                                              ^~~~~~~~~

/tmp/ext-src/hprose_bytes_io.h:642:118: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_bytes_io_read_string_to(hprose_bytes_io *from, hprose_bytes_io *to, int32_t n TSRMLS_DC) {
                                                                                                                      ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:28:
/tmp/ext-src/hprose_class_manager.h:34:104: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API void _hprose_class_manager_register(char *name, int32_t nlen, char *alias, int32_t alen TSRMLS_DC);
                                                                                                        ^~~~~~~~~
In file included from /tmp/ext-src/php_hprose.c:28:
/tmp/ext-src/hprose_class_manager.h:48:85: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API zend_string *_hprose_class_manager_get_alias(char *name, int32_t len TSRMLS_DC);
                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_class_manager.h:49:86: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API zend_string *_hprose_class_manager_get_class(char *alias, int32_t len TSRMLS_DC);
                                                                                      ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:29:
/tmp/ext-src/hprose_writer.h:156:131: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API void _hprose_writer_serialize(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC);
                                                                                                                                   ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:321:125: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_bytes_io(hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                             ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:347:134: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_bytes_io_with_ref(hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                      ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:353:125: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_datetime(hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                             ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:375:134: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_datetime_with_ref(hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                      ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:381:125: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_array(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                             ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:411:133: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_hashtable(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, HashTable *ht TSRMLS_DC) {
                                                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:454:150: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_assoc_array(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                                      ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:463:123: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_map(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                           ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:499:151: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_map_with_ref(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                                       ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:505:128: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_iterator(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:537:156: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_iterator_with_ref(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                                            ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:543:124: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_list(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                            ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:557:133: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_list_with_ref(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:576:147: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_stdclass(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                                   ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:585:156: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_stdclass_with_ref(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                                            ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:672:126: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void _hprose_writer_write_object(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                              ^~~~~~~~~

/tmp/ext-src/hprose_writer.h:725:154: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_writer_write_object_with_ref(hprose_writer *_this, hprose_writer_refer *refer, hprose_bytes_io *stream, zval *val TSRMLS_DC) {
                                                                                                                                                          ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:30:
/tmp/ext-src/hprose_raw_reader.h:38:77: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void unexpected_tag(char tag, char *expected_tags TSRMLS_DC) {
                                                                             ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:61:119: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_raw_reader_read_utf8char_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream TSRMLS_DC);
                                                                                                                       ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:30:
/tmp/ext-src/hprose_raw_reader.h:63:117: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_raw_reader_read_string_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream TSRMLS_DC);
                                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:65:99: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void hprose_raw_reader_read_complex_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream TSRMLS_DC);
                                                                                                   ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:69:103: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static void __hprose_raw_reader_read_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream, char tag TSRMLS_DC) {
                                                                                                       ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:130:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline hprose_bytes_io *hprose_raw_reader_read_raw(hprose_raw_reader *_this TSRMLS_DC) {
                                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:148:119: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_raw_reader_read_utf8char_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream TSRMLS_DC) {
                                                                                                                       ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:157:117: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_raw_reader_read_string_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream TSRMLS_DC) {
                                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_raw_reader.h:166:118: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_raw_reader_read_complex_raw(hprose_raw_reader *_this, hprose_bytes_io *ostream TSRMLS_DC) {
                                                                                                                      ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:31:
/tmp/ext-src/hprose_reader.h:69:88: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 PHP_HPROSE_API void hprose_reader_unserialize(hprose_reader *_this, zval *return_value TSRMLS_DC);
                                                                                        ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:123:80: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline long hprose_reader_read_integer(hprose_reader *_this TSRMLS_DC) {
                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:183:85: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_string *hprose_reader_read_long(hprose_reader *_this TSRMLS_DC) {
                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:231:81: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline double hprose_reader_read_double(hprose_reader *_this TSRMLS_DC) {
                                                                                 ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:264:85: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline zend_bool hprose_reader_read_boolean(hprose_reader *_this TSRMLS_DC) {
                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:275:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_ref(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:286:117: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_reader_read_datetime_without_tag(hprose_bytes_io *stream, zval *return_value TSRMLS_DC) {
                                                                                                                     ^~~~~~~~~

In file included from /tmp/ext-src/php_hprose.c:31:
/tmp/ext-src/hprose_reader.h:347:113: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_datetime_without_tag(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                                 ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:352:113: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_reader_read_time_without_tag(hprose_bytes_io *stream, zval *return_value TSRMLS_DC) {
                                                                                                                 ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:406:109: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_time_without_tag(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                             ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:426:117: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_reader_read_utf8char_without_tag(hprose_bytes_io *stream, zval *return_value TSRMLS_DC) {
                                                                                                                     ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:438:115: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_reader_read_string_without_tag(hprose_bytes_io *stream, zval *return_value TSRMLS_DC) {
                                                                                                                   ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:450:111: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_string_without_tag(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                               ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:455:100: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void _hprose_reader_read_string(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                    ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:478:99: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_string(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                   ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:520:109: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_list_without_tag(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                             ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:539:97: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_list(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                 ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:558:108: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_map_without_tag(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                            ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:589:96: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_map(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:608:78: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_class(hprose_reader *_this TSRMLS_DC) {
                                                                              ^~~~~~~~~

/tmp/ext-src/hprose_reader.h:650:111: error: expected ';', ',' or ')' before 'TSRMLS_DC'
 static zend_always_inline void hprose_reader_read_object_without_tag(hprose_reader *_this, zval *return_value TSRMLS_DC) {
                                                                                                               ^~~~~~~~~

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