Bug #15906 [Opn]: Old versions of GnuPG don't work

From: Date: Wed, 18 Feb 2009 13:44:20 +0000
Subject: Bug #15906 [Opn]: Old versions of GnuPG don't work
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-37@lists.php.net to get a copy of this message
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: Uknown error getting keys +Summary: Old versions of GnuPG don't work Status: Open Type: Bug Package: Crypt_GPG Operating System: unknown unix PHP Version: 5.2.8 Roadmap Versions: New Comment: <div id="changeset"> <span class="removed">-Summary: Uknown error getting keys</span> <span class="added">+Summary: Old versions of GnuPG don&#039;t work</span> </div> Previous Comments: ------------------------------------------------------------------------ [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." ------------------------------------------------------------------------ [2009-02-17 14:51:54] reevery 1.0.6 - I don't have control over this but I will ask for it to be updated. ------------------------------------------------------------------------ [2009-02-17 13:46:45] gauthierm Hi Matthew, Can you post the results of gpg --version? ------------------------------------------------------------------------ [2009-02-17 09:48:02] reevery Description: ------------ Trying to create a script to encode some text via GPG (subsequently to email), Test script: --------------- $to = 'm.c.reeve@bham.ac.uk'; $subject = "[bhamf.org] Donation"; $headers = "From: bhamf.org mailer <updateform@bhamf.org>"; $message = "Encrypt this message"; require_once 'Crypt/GPG.php'; $gpg = new Crypt_GPG(array('homedir' => '/home/bhamf/private/.gnupg', 'debug' => true)); $gpg->addEncryptKey('$to'); $encrypted_message = $gpg->encrypt($to, $message); print $encrypted_message; Expected result: ---------------- Hoping to see some encoded text Actual result: -------------- https://www.bhamf.org/giving/gpg/encrypt.php ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=15906&edit=1

« previous php.pear.bugs (#37) next »