Zookeeper failed to install.
Closed this issue · 1 comments
iamrossalex commented
Version of install-php-extensions
v1.5.51
Error description
#7 1503.6 2: /tmp/pickle.tmp/zookeeper/zookeeper-1.0.0/php_zookeeper.c: In function 'php_zk_watcher_marshal':
#7 1503.6 2: /tmp/pickle.tmp/zookeeper/zookeeper-1.0.0/php_zookeeper.c:1009:21: error: incompatible types when assigning to type 'zend_atomic_bool' {aka 'struct zend_atomic_bool_s'} from type 'int'
#7 1503.6 2: 1009 | EG(vm_interrupt) = 1;
#7 1503.6 2: | ^
#7 1503.6 2: /tmp/pickle.tmp/zookeeper/zookeeper-1.0.0/php_zookeeper.c: In function 'php_zk_completion_marshal':
#7 1503.6 2: /tmp/pickle.tmp/zookeeper/zookeeper-1.0.0/php_zookeeper.c:1053:21: error: incompatible types when assigning to type 'zend_atomic_bool' {aka 'struct zend_atomic_bool_s'} from type 'int'
#7 1503.6 2: 1053 | EG(vm_interrupt) = 1;
#7 1503.6 2: | ^
#7 1503.6 2: make: *** [Makefile:210: php_zookeeper.lo] Error 1
Docker image
php:cli
Minimal Dockerfile
FROM php:cli
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN apt update && apt upgrade
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions amqp apcu bcmath blackfire bz2 calendar csv decimal ev event exif gd imagick imap ldap mcrypt memcached mongodb mysqli oauth odbc opcache pgsql pdo_pgsql pdo_mysql rdkafka redis snappy snmp soap sockets ssh2 swoole xdebug xmlrpc yaml zip zookeeper
mlocati commented
php:cli
now points to PHP 8.2, and zookeeper still doesn't support it.