laradock / laradock

Full PHP development environment for Docker.

Home Page:http://laradock.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workspace wrong PHP version

cristianstancu opened this issue · comments

Description:

I've set up to use the PHP version 8.1 in the .env file but the workspace is updating it to 8.2 so somewhere is doing an update to the last version of PHP which is wrong.

Expected Behavior:

I expect to have the PHP version I select in the .env file.

Context information:

I'm trying to rebuild the workspace with the PHP version 8.1 but instead the PHP version installed is 8.2 hence the build is failing at the 93rd step.
image

Most likely you set the wrong PHP_VERSION value, not 8.1. .

yes I did setup the correct PHP version 8.1
RUN set -xe; php -v | head -n 1 | grep -q "PHP ${LARADOCK_PHP_VERSION}."

that's the line so the PHP version comes from $(LARADOCK_PHP_VERSION) which is PHP_VERSION in .env file

UPDATE:
Mailparse is causing this.
apt-get install -yqq php-mailparse
When is being installed, it upgrade the PHP version. I don't know why. Since I'm not using this extension I disabled it from .env file
WORKSPACE_INSTALL_MAILPARSE=false

UPDATE: Mailparse is causing this. apt-get install -yqq php-mailparse When is being installed, it upgrade the PHP version. I don't know why. Since I'm not using this extension I disabled it from .env file WORKSPACE_INSTALL_MAILPARSE=false

same issue here. This problem occurs since PHP 8.2 was introduced. I believe that is some problem with mailparse library install step.