|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesdiff (last revision 2013-07-26 08:17 UTC by w00ty at tormail dot org)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-26 08:17 UTC] w00ty at tormail dot org
[2015-02-11 17:49 UTC] jimjag@php.net
[2015-02-11 17:51 UTC] jimjag@php.net
[2015-02-11 18:40 UTC] jimjag@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: jimjag
[2015-02-11 18:40 UTC] jimjag@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Description: ------------ gnupg_import( and other functions, but it's especially annoying with gnupg_import ) do not divulge when, and why, they have failed as much as is needed. c4bd391926bec2778c5a1aebefb59c0a c4bd391926bec2778c5a1aebefb5 c4bd391926bec2778c5a1aeb c4bd391926bec277 c4bd391926bec2778c Test script: --------------- <?php $gpg = new gnupg(); $res = $gpg->import("THISISNOTAKEY"); // Currently, this is the best way to check if the import succeeded. No info // about why it may have failed is provided directly. if( $res['imported'] == $res['unchanged'] ) { die("Failed to import key - " . $gpg->geterror() ); } ?>