Sign inSign up

wpstaging/php

By wpstaging

•Updated 7 months ago

All recent PHP versions for setting up the WP Staging dev and testing environments.

Image
0

50K+

wpstaging/php repository overview

⁠docker-php-dev

The docker dev image for WP STAGING.

Docker source: https://hub.docker.com/repository/docker/wpstaging/php⁠

⁠PHP 8.6-dev (built from source)

The php-8.6-dev image is built from php-src master⁠ and includes unreleased fixes not yet available in any stable PHP version. Unlike other images that install PHP from the Ondrej PPA, this one compiles PHP from source.

⁠Why

PHP 8.6 (php-src master) includes a fix for SplFileObject iterator desync bugs (php/php-src#21679⁠) that affects our AbstractFileObject class. This image lets us test against the fixed PHP before it ships in a release.

⁠Rebuild with latest php-src master

The image pins to whatever php-src master looks like at build time. To pick up the latest changes:

# Rebuild (--no-cache forces fresh git clone)
make build-8.6-dev

# Push to Docker Hub
docker push wpstaging/php:8.6-dev

Rebuild whenever php-src master has relevant changes you need to test against. The --no-cache flag in the make target ensures git clone fetches the latest code.

⁠Run PHP CLI directly
docker run --rm wpstaging/php:8.6-dev php -v
docker run --rm wpstaging/php:8.6-dev php -r 'echo PHP_VERSION . "\n";'
⁠When to retire

Once PHP 8.6 has stable release packages available in the Ondrej PPA, create a standard php-8.6 image (like the other versions) and deprecate this -dev image.

Tag summary

Content type

Image

Digest

Size

143.3 MB

Last updated

about 5 years ago

docker pull wpstaging/php