Topic: pear missing extensions needed for packages

It seems like one of the recent updates to pear disables the bulk of the PHP extensions from loading, which is causing an issue for me:

# sudo pear install phpunit/phploc
phpunit/phploc requires PHP extension "tokenizer"
theseer/fDOMDocument requires PHP extension "dom"
phpunit/FinderFacade requires package "theseer/fDOMDocument" (version >= 1.3.1)
No valid packages found
install failed

The tokenizer and dom extensions are both enabled on my system, but it seems that the pear script is now specifically choosing the extensions to load. This happens on php-pear-1.9.4-26.el6.remi.1. Downgrading to php-pear-1.9.4-20.el6.remi fixed the issue.

Re: pear missing extensions needed for packages

Yes, on purpose I fix "pear" command to only load extensions needed by pear...
Enabling all extensions just create bunch of issues...
Will try to think to a better solution


And FYI, simpler to use:

yum install php-phpunit-phploc
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: pear missing extensions needed for packages

Change reverted in -27.

I have to think to a better solution to this "real" problem.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi