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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC