|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 00:00:01 2025 UTC | 
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.