>>> After the recent upgrade of the GnupG/PGP plugin I'm encountering >>> problems with signing mails: >>> ... >>> libapache2-mod-php5 5.2.3-1+b1 >> >> Decryption of attachments (gpg_decrypt_attach.php) is broken in PHP5. >> scandir function is not wrapped with if (!function_exists('scandir')) { >> ... >> } > > Is there a workaround? Wrap function with if (!function_exists('scandir')) test. Code added function which can be used instead of PHP5 scandir function, but used same name as original PHP5 function and created function redeclaration error. gpg_decrypt_attach.php --- + if (! function_exists('scandir')) { function scandir($dirstr) { // php.net/scandir (PHP5) $files = array(); $fh = opendir($dirstr); while (false !== ($filename = readdir($fh))) { array_push($files, $filename); } closedir($fh); return $files; } + } ---- Pluses show added lines. You should not enter those + symbols. Only text that goes after them. -- Tomas -- View this message in context: http://www.nabble.com/GnuPG-Plugin-%28v2.1%29-signing-problem-tf4434449.html#a12893708 Sent from the squirrelmail-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users