php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75490 pecl install pthreads, make fails expct _zend_array but get zend_function_entry
Submitted: 2017-11-06 19:33 UTC Modified: 2021-02-03 12:34 UTC
Votes:15
Avg. Score:4.2 ± 0.9
Reproduced:13 of 13 (100.0%)
Same Version:8 (61.5%)
Same OS:4 (30.8%)
From: damonz at codeswim dot com Assigned: cmb (profile)
Status: Wont fix Package: pthreads (PECL)
PHP Version: 7.2.0RC5 OS: Ubuntu 16.04.3 LTS 4.4.0 x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: damonz at codeswim dot com
New email:
PHP Version: OS:

 

 [2017-11-06 19:33 UTC] damonz at codeswim dot com
Description:
------------
php-7.2.0RC5, pthreads 3.1.6, no changes made to php.ini

From a fresh install of Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64) [Ubuntu Server] running in Virtual Box (4.3.0) on Mac OS 10.11.6:

sudo apt-get install build-essential
sudo apt-get install libxml2
sudo apt-get install libxml2-dev
sudo apt-get install autoconf

mkdir -p ~/fs/src/php
cd ~/fs/src/php
wget https://downloads.php.net/~pollita/php-7.2.0RC5.tar.xz
tar xf php-7.2.0RC5.tar.xz
mkdir php-7.2.0RC5-build
cd php-7.2.0RC5-build

../php-7.2.0RC5/configure  --prefix=/usr/local/php/7.2.0RC5  --enable-debug  --enable-maintainer-zts  --enable-shmop
make -j 12
make test
sudo make install

Then I symlinked progs in /usr/local/php/7.2.0RC5/bin to /usr/local/bin

sudo pecl install pthreads

Test script:
---------------
sudo pecl install pthreads

Expected result:
----------------
pthreads installed!

Then I'm excited.

Actual result:
--------------
root@php7:/home/damonz# pecl install pthreads
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading pthreads-3.1.6.tar ...
Starting to download pthreads-3.1.6.tar (455,168 bytes)
.............................................................................................done: 455,168 bytes
28 source files, building
running: phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
building in /tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6
running: /tmp/pear/temp/pthreads/configure --with-php-config=/usr/local/php/7.2.0RC5/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php/7.2.0RC5
checking for PHP includes... -I/usr/local/php/7.2.0RC5/include/php -I/usr/local/php/7.2.0RC5/include/php/main -I/usr/local/php/7.2.0RC5/include/php/TSRM -I/usr/local/php/7.2.0RC5/include/php/Zend -I/usr/local/php/7.2.0RC5/include/php/ext -I/usr/local/php/7.2.0RC5/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/7.2.0RC5/lib/php/extensions/debug-zts-20170718
checking for PHP installed headers prefix... /usr/local/php/7.2.0RC5/include/php
checking if debug is enabled... yes
checking if zts is enabled... yes
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable pthreads... yes, shared
checking whether to enable AddressSanitizer for pthreads... no
checking whether to enable dmalloc for pthreads... no
checking for ZTS... ok
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/tmp/pear/temp/pthreads -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/include -I/tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/main -I/tmp/pear/temp/pthreads -I/usr/local/php/7.2.0RC5/include/php -I/usr/local/php/7.2.0RC5/include/php/main -I/usr/local/php/7.2.0RC5/include/php/TSRM -I/usr/local/php/7.2.0RC5/include/php/Zend -I/usr/local/php/7.2.0RC5/include/php/ext -I/usr/local/php/7.2.0RC5/include/php/ext/date/lib -I/tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/.  -DHAVE_CONFIG_H  -g -O0   -c /tmp/pear/temp/pthreads/php_pthreads.c -o php_pthreads.lo
mkdir .libs
 cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/tmp/pear/temp/pthreads -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/include -I/tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/main -I/tmp/pear/temp/pthreads -I/usr/local/php/7.2.0RC5/include/php -I/usr/local/php/7.2.0RC5/include/php/main -I/usr/local/php/7.2.0RC5/include/php/TSRM -I/usr/local/php/7.2.0RC5/include/php/Zend -I/usr/local/php/7.2.0RC5/include/php/ext -I/usr/local/php/7.2.0RC5/include/php/ext/date/lib -I/tmp/pear/temp/pear-build-root8YSidF/pthreads-3.1.6/. -DHAVE_CONFIG_H -g -O0 -c /tmp/pear/temp/pthreads/php_pthreads.c  -fPIC -DPIC -o .libs/php_pthreads.o
In file included from /tmp/pear/temp/pthreads/php_pthreads.h:31:0,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:26:
/tmp/pear/temp/pthreads/classes/threaded.h:89:84: error: macro "ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX" passed 6 arguments, but takes just 5
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(Threaded_isGarbage, 0, 0, _IS_BOOL, NULL, 0)
                                                                                    ^
In file included from /usr/local/php/7.2.0RC5/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:128:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘}’ token
 #define ZEND_END_ARG_INFO()  };
                              ^
/tmp/pear/temp/pthreads/classes/threaded.h:90:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
 ZEND_END_ARG_INFO()
 ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.h:39:0,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:26:
/tmp/pear/temp/pthreads/classes/collectable.h:20:87: error: macro "ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX" passed 6 arguments, but takes just 5
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(Collectable_isGarbage, 0, 0, _IS_BOOL, NULL, 0)
                                                                                       ^
In file included from /usr/local/php/7.2.0RC5/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:128:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘}’ token
 #define ZEND_END_ARG_INFO()  };
                              ^
/tmp/pear/temp/pthreads/classes/collectable.h:21:1: note: in expansion of macro ‘ZEND_END_ARG_INFO’
 ZEND_END_ARG_INFO()
 ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.c:47:0:
/tmp/pear/temp/pthreads/src/copy.h: In function ‘pthreads_copy_arginfo’:
/tmp/pear/temp/pthreads/src/copy.h:225:15: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘class_name’
   if (info[it].class_name)
               ^
/tmp/pear/temp/pthreads/src/copy.h:226:12: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘class_name’
    info[it].class_name = zend_string_new(old[it].class_name);
            ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.c:22:0:
/tmp/pear/temp/pthreads/src/copy.h:226:49: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘class_name’
    info[it].class_name = zend_string_new(old[it].class_name);
                                                 ^
/tmp/pear/temp/pthreads/src/pthreads.h:123:45: note: in definition of macro ‘zend_string_new’
 #define zend_string_new(s) zend_string_dup((s), GC_FLAGS((s)) & IS_STR_PERSISTENT)
                                             ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:29:0,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/tmp/pear/temp/pthreads/src/copy.h:226:49: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘class_name’
    info[it].class_name = zend_string_new(old[it].class_name);
                                                 ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:439:26: note: in definition of macro ‘GC_FLAGS’
 #define GC_FLAGS(p)     (p)->gc.u.v.flags
                          ^
/tmp/pear/temp/pthreads/src/copy.h:226:26: note: in expansion of macro ‘zend_string_new’
    info[it].class_name = zend_string_new(old[it].class_name);
                          ^
/tmp/pear/temp/pthreads/php_pthreads.c: In function ‘pthreads_verify_type’:
/tmp/pear/temp/pthreads/php_pthreads.c:158:28: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘type_hint’
   !ZEND_SAME_FAKE_TYPE(info->type_hint, Z_TYPE_P(var)) ||
                            ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:394:3: note: in definition of macro ‘ZEND_SAME_FAKE_TYPE’
  (faketype) == (realtype) \
   ^
/tmp/pear/temp/pthreads/php_pthreads.c:158:28: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘type_hint’
   !ZEND_SAME_FAKE_TYPE(info->type_hint, Z_TYPE_P(var)) ||
                            ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:395:7: note: in definition of macro ‘ZEND_SAME_FAKE_TYPE’
  || ((faketype) == _IS_BOOL && ((realtype) == IS_TRUE || (realtype) == IS_FALSE)) \
       ^
/tmp/pear/temp/pthreads/php_pthreads.c:159:7: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘type_hint’
   info->type_hint != IS_OBJECT ||
       ^
/tmp/pear/temp/pthreads/php_pthreads.c:173:27: error: ‘zend_arg_info {aka struct _zend_arg_info}’ has no member named ‘class_name’
     zend_lookup_class(info->class_name);
                           ^
/tmp/pear/temp/pthreads/php_pthreads.c: In function ‘php_pthreads_recv’:
/tmp/pear/temp/pthreads/php_pthreads.c:192:19: warning: type of ‘ZEND_OPCODE_HANDLER_ARGS’ defaults to ‘int’ [-Wimplicit-int]
 static inline int php_pthreads_recv(ZEND_OPCODE_HANDLER_ARGS) {
                   ^
/tmp/pear/temp/pthreads/php_pthreads.c: In function ‘php_pthreads_verify_return_type’:
/tmp/pear/temp/pthreads/php_pthreads.c:223:19: warning: type of ‘ZEND_OPCODE_HANDLER_ARGS’ defaults to ‘int’ [-Wimplicit-int]
 static inline int php_pthreads_verify_return_type(ZEND_OPCODE_HANDLER_ARGS) {
                   ^
In file included from /usr/local/php/7.2.0RC5/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/tmp/pear/temp/pthreads/classes/threaded.h: At top level:
/tmp/pear/temp/pthreads/classes/threaded.h:109:30: error: ‘Threaded_isGarbage’ undeclared here (not in a function)
  PHP_ME(Threaded, isGarbage, Threaded_isGarbage, ZEND_ACC_PUBLIC)
                              ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:75: note: in definition of macro ‘ZEND_FENTRY’
 #define ZEND_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/php/7.2.0RC5/include/php/main/php.h:422:25: note: in expansion of macro ‘ZEND_ME’
 #define PHP_ME          ZEND_ME
                         ^
/tmp/pear/temp/pthreads/classes/threaded.h:109:2: note: in expansion of macro ‘PHP_ME’
  PHP_ME(Threaded, isGarbage, Threaded_isGarbage, ZEND_ACC_PUBLIC)
  ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend_modules.h:26:0,
                 from /usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:27,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:39,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/tmp/pear/temp/pthreads/classes/threaded.h: In function ‘zim_Threaded_extend’:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_compile.h:530:39: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘called_scope’
 #define EX(element)    ((execute_data)->element)
                                       ^
/tmp/pear/temp/pthreads/classes/threaded.h:322:29: note: in expansion of macro ‘EX’
     zend_do_inheritance(ce, EX(called_scope));
                             ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_compile.h:530:24: warning: passing argument 2 of ‘zend_do_inheritance’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define EX(element)    ((execute_data)->element)
                        ^
/tmp/pear/temp/pthreads/classes/threaded.h:322:29: note: in expansion of macro ‘EX’
     zend_do_inheritance(ce, EX(called_scope));
                             ^
In file included from /tmp/pear/temp/pthreads/src/pthreads.h:61:0,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_inheritance.h:33:15: note: expected ‘zend_class_entry * {aka struct _zend_class_entry *}’ but argument is of type ‘zend_function_entry * {aka struct _zend_function_entry *}’
 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce);
               ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:29:0,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_compile.h:530:39: error: ‘zend_execute_data {aka struct _zend_execute_data}’ has no member named ‘called_scope’
 #define EX(element)    ((execute_data)->element)
                                       ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:671:5: note: in definition of macro ‘ZVAL_BOOL’
    (b) ? IS_TRUE : IS_FALSE; \
     ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:653:31: note: in expansion of macro ‘RETVAL_BOOL’
 #define RETURN_BOOL(b)      { RETVAL_BOOL(b); return; }
                               ^
/tmp/pear/temp/pthreads/classes/threaded.h:327:5: note: in expansion of macro ‘RETURN_BOOL’
     RETURN_BOOL(instanceof_function(ce, EX(called_scope)));
     ^
/tmp/pear/temp/pthreads/classes/threaded.h:327:41: note: in expansion of macro ‘EX’
     RETURN_BOOL(instanceof_function(ce, EX(called_scope)));
                                         ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_compile.h:530:24: warning: passing argument 2 of ‘instanceof_function’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define EX(element)    ((execute_data)->element)
                        ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:671:5: note: in definition of macro ‘ZVAL_BOOL’
    (b) ? IS_TRUE : IS_FALSE; \
     ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:653:31: note: in expansion of macro ‘RETVAL_BOOL’
 #define RETURN_BOOL(b)      { RETVAL_BOOL(b); return; }
                               ^
/tmp/pear/temp/pthreads/classes/threaded.h:327:5: note: in expansion of macro ‘RETURN_BOOL’
     RETURN_BOOL(instanceof_function(ce, EX(called_scope)));
     ^
/tmp/pear/temp/pthreads/classes/threaded.h:327:41: note: in expansion of macro ‘EX’
     RETURN_BOOL(instanceof_function(ce, EX(called_scope)));
                                         ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:328:0,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_operators.h:71:34: note: expected ‘const zend_class_entry * {aka const struct _zend_class_entry *}’ but argument is of type ‘zend_function_entry * {aka struct _zend_function_entry *}’
 ZEND_API zend_bool ZEND_FASTCALL instanceof_function(const zend_class_entry *instance_ce, const zend_class_entry *ce);
                                  ^
In file included from /usr/local/php/7.2.0RC5/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/tmp/pear/temp/pthreads/classes/collectable.h: At top level:
/tmp/pear/temp/pthreads/classes/collectable.h:28:43: error: ‘Collectable_isGarbage’ undeclared here (not in a function)
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
                                           ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:75: note: in definition of macro ‘ZEND_FENTRY’
 #define ZEND_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/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:43: error: initializer element is not constant
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
                                           ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:75: note: in definition of macro ‘ZEND_FENTRY’
 #define ZEND_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/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:43: note: (near initialization for ‘pthreads_collectable_methods[0].arg_info’)
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
                                           ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:75: note: in definition of macro ‘ZEND_FENTRY’
 #define ZEND_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/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:113: error: invalid operands to binary / (have ‘zend_function_entry * {aka struct _zend_function_entry *}’ and ‘long unsigned int’)
 #define ZEND_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/php/7.2.0RC5/include/php/Zend/zend_API.h:82:53: note: in expansion of macro ‘ZEND_FENTRY’
 #define ZEND_ABSTRACT_ME(classname, name, arg_info) ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
                                                     ^
/usr/local/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:85: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define ZEND_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/php/7.2.0RC5/include/php/Zend/zend_API.h:82:53: note: in expansion of macro ‘ZEND_FENTRY’
 #define ZEND_ABSTRACT_ME(classname, name, arg_info) ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
                                                     ^
/usr/local/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:85: error: initializer element is not constant
 #define ZEND_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/php/7.2.0RC5/include/php/Zend/zend_API.h:82:53: note: in expansion of macro ‘ZEND_FENTRY’
 #define ZEND_ABSTRACT_ME(classname, name, arg_info) ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
                                                     ^
/usr/local/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_API.h:70:85: note: (near initialization for ‘pthreads_collectable_methods[0].num_args’)
 #define ZEND_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/php/7.2.0RC5/include/php/Zend/zend_API.h:82:53: note: in expansion of macro ‘ZEND_FENTRY’
 #define ZEND_ABSTRACT_ME(classname, name, arg_info) ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
                                                     ^
/usr/local/php/7.2.0RC5/include/php/main/php.h:424:25: note: in expansion of macro ‘ZEND_ABSTRACT_ME’
 #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME
                         ^
/tmp/pear/temp/pthreads/classes/collectable.h:28:2: note: in expansion of macro ‘PHP_ABSTRACT_ME’
  PHP_ABSTRACT_ME(Collectable, isGarbage,  Collectable_isGarbage)
  ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.h:43:0,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:26:
/tmp/pear/temp/pthreads/classes/worker.h: In function ‘zim_Worker_collect’:
/tmp/pear/temp/pthreads/classes/worker.h:53:10: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘function_table’
  call.fci.function_table = &(w)->ce->function_table; \
          ^
/tmp/pear/temp/pthreads/classes/worker.h:227:3: note: in expansion of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
   PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(getThis()));
   ^
/tmp/pear/temp/pthreads/classes/worker.h:55:57: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘function_table’
  call.fcc.function_handler = zend_hash_find_ptr(call.fci.function_table, Z_STR(call.fci.function_name)); \
                                                         ^
/tmp/pear/temp/pthreads/classes/worker.h:227:3: note: in expansion of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
   PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(getThis()));
   ^
/tmp/pear/temp/pthreads/classes/worker.h:227:34: warning: passing argument 1 of ‘zend_hash_find_ptr’ from incompatible pointer type [-Wincompatible-pointer-types]
   PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(getThis()));
                                  ^
/tmp/pear/temp/pthreads/classes/worker.h:55:49: note: in definition of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
  call.fcc.function_handler = zend_hash_find_ptr(call.fci.function_table, Z_STR(call.fci.function_name)); \
                                                 ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:34:0,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_hash.h:736:33: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘zend_function_entry * {aka struct _zend_function_entry *}’
 static zend_always_inline void *zend_hash_find_ptr(const HashTable *ht, zend_string *key)
                                 ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend_portability.h:49:0,
                 from /usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:29,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/tmp/pear/temp/pthreads/classes/pool.h: In function ‘zim_Pool_submit’:
/usr/local/php/7.2.0RC5/include/php/Zend/../TSRM/TSRM.h:174:69: error: ‘zend_executor_globals {aka struct _zend_executor_globals}’ has no member named ‘scope’
 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element)
                                                                     ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend.h:56:20: note: in expansion of macro ‘TSRMG_STATIC’
 #define ZEND_TSRMG TSRMG_STATIC
                    ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_globals_macros.h:44:16: note: in expansion of macro ‘ZEND_TSRMG’
 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v)
                ^
/tmp/pear/temp/pthreads/classes/pool.h:189:30: note: in expansion of macro ‘EG’
    zend_class_entry *scope = EG(scope);
                              ^
/usr/local/php/7.2.0RC5/include/php/Zend/../TSRM/TSRM.h:174:41: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element)
                                         ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend.h:56:20: note: in expansion of macro ‘TSRMG_STATIC’
 #define ZEND_TSRMG TSRMG_STATIC
                    ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_globals_macros.h:44:16: note: in expansion of macro ‘ZEND_TSRMG’
 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v)
                ^
/tmp/pear/temp/pthreads/classes/pool.h:189:30: note: in expansion of macro ‘EG’
    zend_class_entry *scope = EG(scope);
                              ^
/usr/local/php/7.2.0RC5/include/php/Zend/../TSRM/TSRM.h:174:69: error: ‘zend_executor_globals {aka struct _zend_executor_globals}’ has no member named ‘scope’
 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element)
                                                                     ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend.h:56:20: note: in expansion of macro ‘TSRMG_STATIC’
 #define ZEND_TSRMG TSRMG_STATIC
                    ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_globals_macros.h:44:16: note: in expansion of macro ‘ZEND_TSRMG’
 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v)
                ^
/tmp/pear/temp/pthreads/classes/pool.h:195:4: note: in expansion of macro ‘EG’
    EG(scope) = ce;
    ^
/usr/local/php/7.2.0RC5/include/php/Zend/../TSRM/TSRM.h:174:69: error: ‘zend_executor_globals {aka struct _zend_executor_globals}’ has no member named ‘scope’
 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element)
                                                                     ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend.h:56:20: note: in expansion of macro ‘TSRMG_STATIC’
 #define ZEND_TSRMG TSRMG_STATIC
                    ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_globals_macros.h:44:16: note: in expansion of macro ‘ZEND_TSRMG’
 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v)
                ^
/tmp/pear/temp/pthreads/classes/pool.h:197:4: note: in expansion of macro ‘EG’
    EG(scope) = scope;
    ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.c:442:0:
/tmp/pear/temp/pthreads/classes/pool.h:204:8: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘function_table’
     fci.function_table = EG(function_table);
        ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend_portability.h:49:0,
                 from /usr/local/php/7.2.0RC5/include/php/Zend/zend_types.h:27,
                 from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:29,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/../TSRM/TSRM.h:174:69: error: ‘zend_executor_globals {aka struct _zend_executor_globals}’ has no member named ‘scope’
 #define TSRMG_STATIC(id, type, element) (TSRMG_BULK_STATIC(id, type)->element)
                                                                     ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend.h:56:20: note: in expansion of macro ‘TSRMG_STATIC’
 #define ZEND_TSRMG TSRMG_STATIC
                    ^
/usr/local/php/7.2.0RC5/include/php/Zend/zend_globals_macros.h:44:16: note: in expansion of macro ‘ZEND_TSRMG’
 # define EG(v) ZEND_TSRMG(executor_globals_id, zend_executor_globals *, v)
                ^
/tmp/pear/temp/pthreads/classes/pool.h:211:25: note: in expansion of macro ‘EG’
     fcc.calling_scope = EG(scope);
                         ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.c:442:0:
/tmp/pear/temp/pthreads/classes/pool.h:211:23: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
     fcc.calling_scope = EG(scope);
                       ^
In file included from /tmp/pear/temp/pthreads/php_pthreads.h:43:0,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:26:
/tmp/pear/temp/pthreads/classes/pool.h: In function ‘zim_Pool_collect’:
/tmp/pear/temp/pthreads/classes/worker.h:53:10: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘function_table’
  call.fci.function_table = &(w)->ce->function_table; \
          ^
/tmp/pear/temp/pthreads/classes/pool.h:293:4: note: in expansion of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
    PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(worker));
    ^
/tmp/pear/temp/pthreads/classes/worker.h:55:57: error: ‘zend_fcall_info {aka struct _zend_fcall_info}’ has no member named ‘function_table’
  call.fcc.function_handler = zend_hash_find_ptr(call.fci.function_table, Z_STR(call.fci.function_name)); \
                                                         ^
/tmp/pear/temp/pthreads/classes/pool.h:293:4: note: in expansion of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
    PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(worker));
    ^
/tmp/pear/temp/pthreads/classes/pool.h:293:35: warning: passing argument 1 of ‘zend_hash_find_ptr’ from incompatible pointer type [-Wincompatible-pointer-types]
    PTHREADS_WORKER_COLLECTOR_INIT(call, Z_OBJ_P(worker));
                                   ^
/tmp/pear/temp/pthreads/classes/worker.h:55:49: note: in definition of macro ‘PTHREADS_WORKER_COLLECTOR_INIT’
  call.fcc.function_handler = zend_hash_find_ptr(call.fci.function_table, Z_STR(call.fci.function_name)); \
                                                 ^
In file included from /usr/local/php/7.2.0RC5/include/php/Zend/zend.h:34:0,
                 from /usr/local/php/7.2.0RC5/include/php/main/php.h:35,
                 from /tmp/pear/temp/pthreads/src/pthreads.h:37,
                 from /tmp/pear/temp/pthreads/php_pthreads.c:22:
/usr/local/php/7.2.0RC5/include/php/Zend/zend_hash.h:736:33: note: expected ‘const HashTable * {aka const struct _zend_array *}’ but argument is of type ‘zend_function_entry * {aka struct _zend_function_entry *}’
 static zend_always_inline void *zend_hash_find_ptr(const HashTable *ht, zend_string *key)
                                 ^
Makefile:196: recipe for target 'php_pthreads.lo' failed
make: *** [php_pthreads.lo] Error 1
ERROR: `make' failed

Then I felt sad.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-11 05:32 UTC] daniel at ciokix dot ro
This should be fixed by this commit: https://github.com/krakjoe/pthreads/commit/32dc3fa96b11e38dbbc7ce0d66ffecdca6184bd4 but a a new release is needed to include this change (see https://pecl.php.net/package/pthreads).
 [2021-02-03 12:34 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-02-03 12:34 UTC] cmb@php.net
The maintainer of PECL/pthreads has ceased its developement for
good reasons[1].  Consider to use PECL/parallel[2] instead.

[1] <https://github.com/krakjoe/pthreads/issues/929>
[2] <https://pecl.php.net/package/parallel>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC