php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56677 gnupg.so fails load after build
Submitted: 2005-11-27 16:59 UTC Modified: 2005-11-27 18:09 UTC
From: thecubic at thecubic dot net Assigned:
Status: Closed Package: gnupg (PECL)
PHP Version: 5.0.4 OS: Fedora Core 4 / Linux
Private report: No CVE-ID: None
 [2005-11-27 16:59 UTC] thecubic at thecubic dot net
Description:
------------
The extention builds perfectly with PEAR, and then on use:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gnupg.so' - /usr/lib/php/modules/gnupg.so: undefined symbol: GNUPG_ERROR in Unknown on line 0

Reproduce code:
---------------
pear install gnupg
echo "<?php dl('gnupg.so'); ?>" | php

Expected result:
----------------
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/gnupg.so' - /usr/lib/php/modules/gnupg.so: undefined symbol: GNUPG_ERROR in Unknown on line 0

gnupg functions not available in PHP

Actual result:
--------------
gnupg.so loads and functions are available in PHP

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-27 17:44 UTC] traufeisen@php.net
Sorry, but I can?t reproduce this.
Please try building this extension manually.
 [2005-11-27 18:09 UTC] thecubic at thecubic dot net
I built it with phpize, and got the exact same result.

I grep'ed for GNUPG_ERROR, and found only one on line 509:
GNUPG_ERROR("invalid errormode");

everything else used GNUPG_ERR(), so I switched it to that, and it loaded.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Aug 18 18:01:27 2019 UTC