Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
Image tags are moving, so changes are listed by the date (UTC) they were published.
Check when your local image was built with `docker image inspect --format '{{.Created}}' ghcr.io/phpyh/php:8.5`.

## 2026-11-16

### Added

- Add `ev` and `event` extensions. `event` is built with `sockets` support.

## 2026-11-11

### Added
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ ARG XDEBUG

RUN <<EOF
set -eux
# opcache is enabled in all base images, mbstring is missing from 8.6
# opcache is enabled in all base images, mbstring is missing from 8.6.
# The installer builds sockets first, compiles event with sockets support
# and names its ini xx-php-ext-event.ini, so event is loaded after sockets.
install-php-extensions \
@composer \
mbstring \
Expand All @@ -36,6 +38,8 @@ RUN <<EOF
bcmath \
pgsql \
pdo_pgsql \
ev \
event \
${XDEBUG:-xdebug}
ln -s /usr/local/bin/composer /usr/local/bin/c
EOF
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ To bind-mount a host directory instead, create it first, otherwise Docker create
- Git trusts all directories (`safe.directory=*`), so it works in mounted repositories owned by another user
- PHP extensions:
[`bcmath`](https://www.php.net/manual/en/book.bc.php),
[`ev`](https://www.php.net/manual/en/book.ev.php),
[`event`](https://www.php.net/manual/en/book.event.php) (with `sockets` support),
[`intl`](https://www.php.net/manual/en/book.intl.php),
[`mbstring`](https://www.php.net/manual/en/book.mbstring.php),
[`opcache`](https://www.php.net/manual/en/book.opcache.php),
Expand Down
5 changes: 4 additions & 1 deletion tests/smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ image=${1:?Usage: $0 <image>}
docker run --rm -i "$image" sh -eux <<'SH'
test "$(whoami)" = dev
php -v
# Extensions load without startup warnings, e.g. event loaded before sockets
test -z "$(php -r '' 2>&1)"
php -r '
foreach (["Zend OPcache", "xdebug", "mbstring", "uv", "pcntl", "sockets", "intl", "bcmath", "pgsql", "pdo_pgsql"] as $ext) {
foreach (["Zend OPcache", "xdebug", "mbstring", "uv", "pcntl", "sockets", "intl", "bcmath", "pgsql", "pdo_pgsql", "ev", "event"] as $ext) {
extension_loaded($ext) || throw new Error("Extension {$ext} is not loaded");
}
method_exists("EventUtil", "getSocketFd") || throw new Error("Event is built without sockets support");
xdebug_info("mode") === [] || throw new Error("Xdebug is not off by default");
'
make --version | head -n1
Expand Down
Loading