Hello everybody,
I am trying to install pecl stats extension for php 7.2, in adition to php 5.4.45. The default server php version is 5.4.45 and I have installed stats v. 1.0.5.
I tried calling the pecl of php 7.2. as
it throws hundreds of errors like the following:
I can install other pecl extensions for php 7.2 (e.g. trader), only stats causes the problem for php 7.2.
PHP and pecl versions:
Any suggestions how to fix it? I have to keep both php 5.4.45 and 7.2 due to incompatibility of some applications.
Thanks!
I am trying to install pecl stats extension for php 7.2, in adition to php 5.4.45. The default server php version is 5.4.45 and I have installed stats v. 1.0.5.
I tried calling the pecl of php 7.2. as
Code:
/opt/plesk/php/7.2/bin/pecl install stats-2.0.2
it throws hundreds of errors like the following:
Code:
/usr/include/php/Zend/zend_operators.h:400:36: note: in expansion of macro convert_to_ex_master
#define convert_to_double_ex(ppzv) convert_to_ex_master(ppzv, double, DOUBLE)
^~~~~~~~~~~~~~~~~~~~
/tmp/stats/php_stats.c:3684:3: note: in expansion of macro convert_to_double_ex
convert_to_double_ex(entry);
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/main/php.h:34:0,
from /tmp/stats/php_stats.c:26:
/usr/include/php/Zend/zend.h:767:12: error: incompatible types when assigning to type zval {aka struct _zval_struct} from type zval * {aka s
truct _zval_struct *}
*(ppzv) = new_zv; \
^
/usr/include/php/Zend/zend.h:774:3: note: in expansion of macro SEPARATE_ZVAL
SEPARATE_ZVAL(ppzv); \
^~~~~~~~~~~~~
/usr/include/php/Zend/zend_operators.h:358:3: note: in expansion of macro SEPARATE_ZVAL_IF_NOT_REF
SEPARATE_ZVAL_IF_NOT_REF(ppzv); \
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/php/Zend/zend_operators.h:400:36: note: in expansion of macro convert_to_ex_master
#define convert_to_double_ex(ppzv) convert_to_ex_master(ppzv, double, DOUBLE)
^~~~~~~~~~~~~~~~~~~~
/tmp/stats/php_stats.c:3684:3: note: in expansion of macro convert_to_double_ex
convert_to_double_ex(entry);
^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/Zend/zend.h:830:0,
from /usr/include/php/main/php.h:34,
from /tmp/stats/php_stats.c:26:
/usr/include/php/Zend/zend_operators.h:359:27: error: incompatible type for argument 1 of convert_to_double
convert_to_##lower_type(*ppzv); \
^
/usr/include/php/Zend/zend_operators.h:400:36: note: in expansion of macro convert_to_ex_master
#define convert_to_double_ex(ppzv) convert_to_ex_master(ppzv, double, DOUBLE)
^~~~~~~~~~~~~~~~~~~~
/tmp/stats/php_stats.c:3684:3: note: in expansion of macro convert_to_double_ex
convert_to_double_ex(entry);
I can install other pecl extensions for php 7.2 (e.g. trader), only stats causes the problem for php 7.2.
PHP and pecl versions:
Code:
# /opt/plesk/php/7.2/bin/pecl version
PEAR Version: 1.10.5
PHP Version: 7.2.13
Zend Engine Version: 3.2.0
Running on: Linux xxx.com 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64
# pecl version
PEAR Version: 1.9.4
PHP Version: 5.4.45
Zend Engine Version: 2.4.0
Running on: Linux xxx.com 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64
Any suggestions how to fix it? I have to keep both php 5.4.45 and 7.2 due to incompatibility of some applications.
Thanks!
Last edited: