php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79766 PECL no longer included in published docker build
Submitted: 2020-07-01 18:01 UTC Modified: 2020-07-01 18:03 UTC
From: eric at ericstern dot com Assigned:
Status: Not a bug Package: PECL (PECL)
PHP Version: 8.0.0alpha1 OS: docker/alpine linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eric at ericstern dot com
New email:
PHP Version: OS:

 

 [2020-07-01 18:01 UTC] eric at ericstern dot com
Description:
------------
This is presumably intentional and temporary, but PECL is not included in the published Docker image: `php:8.0.0alpha1-fpm-alpine` (it also appears to be missing in fpm-buster). For software that depends on pecl packages, this makes testing against the alpha builds difficult/impossible.

Test script:
---------------
$ docker run --rm -it php:8.0.0alpha1-fpm-alpine sh

/var/www/html # apk add $PHPIZE_DEPS && pecl install apcu && docker-php-ext-enable apcu


Alternatively, in a Dockerfile:

FROM php:8.0.0alpha1-fpm-alpine
RUN apk add --update \
  $PHPIZE_DEPS \
  && pecl install apcu \
  && docker-php-ext-enable apcu \
  && && rm -rf /var/cache/apk/*

Expected result:
----------------
Installation completes, or at least returns an error that the pecl packages haven't been updated for PHP 8 yet.

Actual result:
--------------
sh: pecl: not found

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-01 18:03 UTC] derick@php.net
-Status: Open +Status: Not a bug
 [2020-07-01 18:03 UTC] derick@php.net
We don't control these docker builds. They call them "official", but they're official *docker*, not official PHP.
 [2020-07-01 18:05 UTC] eric at ericstern dot com
Oh, no kidding. I'll try https://github.com/docker-library/php/issues instead. Thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 11:01:27 2025 UTC