Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistant PHP version #1

Open
haqadn opened this issue Jun 15, 2021 · 0 comments
Open

Inconsistant PHP version #1

haqadn opened this issue Jun 15, 2021 · 0 comments

Comments

@haqadn
Copy link

haqadn commented Jun 15, 2021

Thank you for the image, Chris. I would like to report a version inconsistency issue that can perhaps be solved easily by rebuilding and publishing on docker hub.

The issue:
If I build the image locally, it builds with PHP 7.2.10. However, if I pull from docker hub, the image has PHP 7.1.5. Someone on this link has explained it quite well but I will copy-paste it here just in case:

Usage 1 - Building it locally

Clone the repository
Run docker-compose -f docker-compose.yml run --rm wordpress_phpunit php -v
Output:

PHP 7.2.10 (cli) (built: Sep 17 2018 09:23:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans

Usage 2 - Using it in my docker-compose.yml

My docker-compose.yml
version: "3"

services:
wordpress_phpunit:
image: "chriszarate/wordpress-phpunit"

Run Run docker-compose -f docker-compose.yml run --rm wordpress_phpunit php -v
Output:

PHP 7.1.5 (cli) (built: May 13 2017 10:49:18) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.5, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.3, Copyright (c) 2002-2017, by Derick Rethans

Notice that the Usage 1 installs PHP 7.2.10 whereas Usage 2 installs PHP 7.1.5

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

No branches or pull requests

1 participant