- Edited
Trying to get gnupg
to work on a PHP 8.1 installation.
This seems to work in the Dockerfile
I'm using:
RUN apt-get install -y libgpgme11-dev && pecl install gnupg
When I attach to the running web server, I can do:
# pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
gnupg 1.5.1 stable
But when I run the test for the one functionality that uses it, I get:
Fatal error: Uncaught Error: Class "gnupg" not found in /var/www/html/.../decryptparams.php:9
The offending code:
function intercept(Context $context, ActionInvocation $invocation) {
if ($context->identity->offsetGet('decryptParams', false)) {
putenv('GNUPGHOME=/var/www/.gnupg');
$gpg = new gnupg(); // <--- line 9
Am I missing a step that actually makes that extension usable/accessible, or could it be an include path thing, or...?