Skip to content

Fix PHP 5.2-5.4 containers - #44

Merged
desrosj merged 1 commit into
masterfrom
old-php-fixes
Oct 19, 2020
Merged

desrosj merged 1 commit into
masterfrom
old-php-fixes

Conversation

@desrosj

@desrosj desrosj commented Oct 16, 2020 •

Copy link
Copy Markdown
Member

Installing xDebug and opcache seems to at least keep the containers running.

WP CLI won't run on 5.2/5.3 (not supported). But manually installing WordPress through the browser works fine. I did some quick testing and it looks like using the 5.4 CLI image with those versions of PHP works fine. The 5.2 and 5.3 versions of the CLI container could probably just be eliminated, or updated to use 5.4 so that the CLI is accessible.

Fixes #43.

@desrosj desrosj self-assigned this Oct 16, 2020
@desrosj
desrosj marked this pull request as ready for review October 16, 2020 20:49
@desrosj
desrosj requested a review from pento October 18, 2020 13:10

@pento pento left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 Noice.

The 5.2 and 5.3 versions of the CLI container could probably just be eliminated

This would likely make it harder to back-port the Docker config to older WP branches, since it would need to switch whether or not a CLI container can be created, depending on the PHP version.

or updated to use 5.4 so that the CLI is accessible.

This is the a potential option. The only real downside is that CLI will be using a different PHP version, which could cause surprising behaviour if you're not aware of it. Perhaps echoing a warning on the CLI Dockerfile would help with that?

@desrosj
desrosj merged commit c416d62 into master Oct 19, 2020
@desrosj
desrosj deleted the old-php-fixes branch October 19, 2020 10:36
@desrosj

desrosj commented Oct 19, 2020

Copy link
Copy Markdown
Member Author

@pento I opened #46 to work on this. If you could let me know if it's on track with what you had in mind, I can polish it up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues with the PHP 5.2, 5.3, and 5.4 containers

2 participants