[php-src] Issue #12884: Segfault when running Psalm on the official 8.3 alpine ZTS image
| From: | danog | Date: | Wed, 06 Dec 2023 15:35:17 +0000 |
| Subject: | [php-src] Issue #12884: Segfault when running Psalm on the official 8.3 alpine ZTS image | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245995@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12884
Author: danog
### Description
The following Dockerfile:
```php
FROM php:8.3-zts-alpine AS base
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions opcache
RUN apk add git unzip
RUN git clone https://github.com/WyriHaximus/php-test-utilities/
\
&& php -r "readfile('https://getcomposer.org/installer');" |
php \
&& mv composer.phar /usr/bin/composer
WORKDIR /php-test-utilities
RUN composer install --ignore-platform-reqs || true
ENV PSALM_ALLOW_XDEBUG=1
RUN php -dopcache.enable_cli=true -dopcache.jit_buffer_size=512M -dopcache.jit=1205
-dopcache.optimization_level=0x7FFEBFFF vendor/bin/psalm --shepherd --stats
--config=./etc/qa/psalm.xml --no-cache
ENTRYPOINT ["docker-php-entrypoint"]
```
Resulted in a segfault, but I expected no segfault.
### PHP Version
PHP 8.3.0
### Operating System
_No response_