-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
After installing couchbase package via pecl install , I am unable to install any other php packages in docker container OR running any PHP commands like composer -version in my container.
Couchbase version : 4.2.3
php version : 8.4.0beta5
OS: Linux/Ubuntu
Reproduction:
Dockerfile.txt
docker build .
Error:
=> CACHED [12/14] RUN pecl install couchbase-4.2.3 && echo "extension=couchbase.so" >> "/usr/local/etc/php/conf.d/ext-couchbase.ini" 0.0s
=> [13/14] RUN curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php 1.2s
=> ERROR [14/14] RUN php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer 0.6s
------
> [14/14] RUN php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer:
0.407 php: /usr/src/php/Zend/zend_API.c:2900: zend_normalize_internal_type: Assertion `!(((*type).type_mask & (1u << (9))) != 0) && "resource is not allowed in a zend_type"' failed.
0.591 Aborted (core dumped)
------
Dockerfile:51
--------------------
49 | # Install Composer
50 | RUN curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
51 | >>> RUN php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
52 |
53 |
--------------------
Tried with installing "pecl install grpc-1.66.0" and other php commands. These installation works fine without couchbase extension installation in docker container.
composer --version
[21:24:09](https://ci.instana.io/teams/php/pipelines/php-extensions:supporting_php_version_8.4#L66cf2542:159)
Assertion failed: !(((*type).type_mask & (1u << (9))) != 0) && "resource is not allowed in a zend_type" (/usr/src/php/Zend/zend_API.c: zend_normalize_internal_type: 2900)
[21:24:09](https://ci.instana.io/teams/php/pipelines/php-extensions:supporting_php_version_8.4#L66cf2542:160)
Aborted (core dumped)
PS:
issue is not seen with PHP 8.3.11.
Expected Behavior:
Installation should be successful
Metadata
Metadata
Assignees
Labels
No labels