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

ID: 15906
Updated by: mike@silverorange.com
Reported By: m dot c dot reeve at bham dot ac dot uk
Summary: Old versions of GnuPG don't work
-Status: Assigned
+Status: Closed
Type: Bug
Package: Crypt_GPG
Operating System: unknown unix
PHP Version: 5.2.8
Assigned To: gauthierm
Roadmap Versions:
New Comment:

-Status: Assigned
+Status: Closed
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on
pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

This is fixed as well as it can be. Old versions will no longer throw
an exception all
the time. You can now get the version of GnuPG with
$gpg->getVersion().

The current version status is:

* GnuPG version 1.0.2 can not be used at all since it lacks the
command-fd.

* GnuPG version 1.0.6 import-key and delete-private-key methods don't
work.
Encryption algorithms have different names so interoperability with
current versions
is poor.

* GnuPG version 1.2.0 works perfectly except for import-keys. For this
method, the
status codes returned by GnuPG are different between version 1.2.x and
1.4.x


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

[2009-12-22 18:02:24] cfallen
$gpg->addEncryptKey('$to');
the TO variable is not interpolated inside single quotes. That means
GPG never receives the correct email address with which to fetch the
correct keys. That may be why your script fails.

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

[2009-02-18 13:44:29] gauthierm

-Assigned To:
+Assigned To: gauthierm


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

[2009-02-18 13:44:20] gauthierm

-Summary: Uknown error getting keys
+Summary: Old versions of GnuPG don't work


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

[2009-02-17 15:17:27] gauthierm

Thanks!

From the debug output you've linked to in this report, it looks like
your version of GnuPG doesn't have the --no-agent option, and this is
what's causing the unknown error. Given the appropriate GnuPG version, I
can test Crypt_GPG against it and fix the problem. I've only ever tested
with 1.4.x version.

I'll grab a copy of 1.0.6 and fix this when I get a chance. In the
meantime, using version 1.4.x will probably fix the problem.

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

[2009-02-17 14:53:25] reevery

Server Admins say:
"The version of GnuPG is 1.4.6."

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=15906

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 1, '10 at 10:01a
activeMar 1, '10 at 10:01a
posts1
users1
websitepear.php.net

1 user in discussion

Mike: 1 post

People

Translate

site design / logo © 2022 Grokbase