Skip to content

PHP8.0-alpha1: PECL not found #1029

@michaljusiega

Description

@michaljusiega

Hello,

I'm trying to use an image for PHP 8.0, but pecl command does not exist:

For example:

...
&& pecl install apcu && docker-php-ext-enable apcu \
...

For PHP 7.4: docker run php:7.4.7-apache-buster pecl

Output:

E:\PROJEKTY\intranet>docker run php:7.4.7-apache-buster pecl
Commands:
build                  Build an Extension From C Source
bundle                 Unpacks a Pecl Package
channel-add            Add a Channel
...

For PHP 8.0-alpha1: docker run php:8.0.0alpha1-apache-buster pecl

Output:

E:\PROJEKTY\intranet>docker run php:8.0.0alpha1-apache-buster pecl
/usr/local/bin/docker-php-entrypoint: 9: exec: pecl: not found

It seems to me that the PHP team did something from the PECL repository but I can't find any information about it.

Okay, I found information for Dockerfile PHP 7.4:

# in PHP 7.4+, the pecl/pear installers are officially deprecated (requiring an explicit "--with-pear") and will be removed in PHP 8+; see also https://github.com/docker-library/php/issues/846#issuecomment-505638494

but there is not that line in Dockerfile PHP 8.0.

Is there any replacement for installing this repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions