Bug #19751 [Opn->Csd]: Fatal error: Uncaught ... in /usr/local/lib/php/Crypt/GPG.php on line 1719
| From: | fascicule at gmail dot com | Date: | Sun, 16 Dec 2012 09:22:13 +0000 |
| Subject: | Bug #19751 [Opn->Csd]: Fatal error: Uncaught ... in /usr/local/lib/php/Crypt/GPG.php on line 1719 | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9416@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19751&edit=1
ID: 19751
Updated by: fascicule@gmail.com
Reported By: fascicule at gmail dot com
Summary: Fatal error: Uncaught ... in
/usr/local/lib/php/Crypt/GPG.php on line 1719
-Status: Open
+Status: Closed
Type: Bug
Package: Crypt_GPG
Operating System: Linux
Package Version: 1.3.2
PHP Version: 5.2.17
-Assigned To:
+Assigned To: francois34
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: francois34
There were two key GPG.
I deleted one, it works now.
Previous Comments:
------------------------------------------------------------------------
[2012-12-16 08:19:22] francois34
Description:
------------
Hello,
I get an error with the script below.
The include_path in php.ini is ".:/usr/lib/php:/usr/local/lib/php";
Thnak you.
Test script:
---------------
<?php
require_once('Crypt/GPG.php');
$gnupg = new Crypt_GPG();
$gnupg->addDecryptKey('KEY GOES HERE');
?>
Expected result:
----------------
Fatal error: Uncaught <table style="border: 1px" cellspacing="0">
<tr><td colspan="3" style="background: #ff9999">
<b>Crypt_GPG_KeyNotFoundException</b>: Key "KEY GOES HERE" not found. in
<b>/usr/local/lib/php/Crypt/GPG.php</b> on line
<b>1497</b></td></tr>
<tr><td colspan="3" style="background-color: #aaaaaa; text-align:
center; font-weight: bold;">Exception trace</td></tr> <tr><td
style="text-align: center; background: #cccccc; width:20px; font-weight:
bold;">#</td><td style="text-align: center; background: #cccccc;
font-weight: bold;">Function</td><td style="text-align: center;
background: #cccccc; font-weight: bold;">Location</td></tr> <tr><td
style="text-align: center;">0</td><td>Crypt_GPG->_addKey(Array, true,
false, 'KEY GOES HERE',
null)</td><td>/usr/local/lib/php/Crypt/GPG.php:1497</td></tr>
<tr><td
style="text-align: center;">1</td><td>Crypt_GPG->addDecryptKey('KEY
GOES
HERE')</td><td>/home/marchin1/public_html/info.php:4</td></tr>
<tr><td
style="text-align:
center;">2</td><td>{main}</td><td>Â </td in
/usr/local/lib/php/Crypt/GPG.php on line 1719
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19751&edit=1