FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17628&edit=1

ID: 17628
Updated by: mike@silverorange.com
Reported By: steves at splicer dot com
Summary: Uncaught exception
Status: Open
Type: Bug
Package: Crypt_GPG
Operating System: OS X 10.5.8
Package Version: 1.1.1
PHP Version: 5.2.12
Roadmap Versions:
New Comment:

Hi Steven,

Are you using MAMP from www.mamp.info, or just with the tools provided
by stock
OS X?

I'm not able to reproduce the issue using my 1.4.10 version of Crypt_GPG
in
Ubuntu 10.04.

Can you do a dump of gpg --version and attach it to this bug so I can
investigate
further? I'm suspicious the line breaks are not equal to PHP_EOL.

$gpg --version > gpg-version-dump


Previous Comments:
------------------------------------------------------------------------

[2010-07-23 23:11:13] smscotten

Description:
------------
Result (below) is what I get in a stock MAMP environment (php.ini
modified only to add the library path for PEAR packages)

If I run 'usr/local/bin/gpg --help' the first line returned is:

gpg (GnuPG) 1.4.10

So I'm pretty sure it's really GnuPG.

Test script:
---------------
<?php
require_once('Crypt/GPG.php');
$gnupg = new Crypt_GPG();
$gnupg->addDecryptKey('KEY GOES HERE');
?>

Expected result:
----------------
nothing at all.

Actual result:
--------------
Fatal error: Uncaught Crypt_GPG_Exception: No GnuPG version information
provided by the binary "/usr/local/bin/gpg". Are you sure it is GnuPG?
in /usr/lib/php/Crypt/GPG/Engine.php on line 1391

Exception trace #

Function
Location
0 Crypt_GPG_Engine->getVersion() /usr/lib/php/Crypt/GPG/Engine.php:1391
1 Crypt_GPG_Engine->_openSubprocess()
/usr/lib/php/Crypt/GPG/Engine.php:689
2 Crypt_GPG_Engine->run() /usr/lib/php/Crypt/GPG.php:722
3 Crypt_GPG->getKeys('[BEGINNING OF KEY]…') /usr/lib/php/Crypt in
/usr/lib/php/Crypt/GPG/Engine.php on line 847

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 26, '10 at 3:04p
activeJul 26, '10 at 3:04p
posts1
users1
websitepear.php.net

1 user in discussion

Mike: 1 post

People

Translate

site design / logo © 2022 Grokbase