Bug #71642 [NEW]: Encrypt files using gnupg in php iis server?

From: Date: Mon, 22 Feb 2016 09:33:15 +0000
Subject: Bug #71642 [NEW]: Encrypt files using gnupg in php iis server?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199383@lists.php.net to get a copy of this message
From: t dot tayyem at yahoo dot com Operating system: Windows NT (Windows 8 Business PHP version: 5.6.18 Package: IIS related Bug Type: Bug Bug description:Encrypt files using gnupg in php iis server? Description: ------------ I've faced the error Warning: gnupg_import(): import failed " while importing the public key and I did not have any luck solving this issue , when use (iis server-win8 - php version 5.5.12) with (php-5.5-windows-extensions/php_gnupg-1.3.3-5.5-vc11-x86/). The question is, can i use php_gnupg (PGP (Pretty Good Privacy)) with IIS server to encrypted file ? php_gnupg is a compatible with iis server !!!! NOTE: This problem does not appear when use XAMPP sever. http://php.net/manual/en/book.gnupg.php https://github.com/maryo/php-5.5-windows-extensions/tree/master/php_gnupg-1.3.3-5.5-vc11-x86 Test script: --------------- $res = gnupg_init(); $public_key_sender = file_get_contents('public_key_sender.asc', true); $private_key_sender = file_get_contents('public_key_sender.asc', true); $private_key_sender_ = gnupg_import($res,$private_key_sender); $public_key_sender_ = gnupg_import($res,$public_key_sender); Expected result: ---------------- when use iis server (php version 5.5.12) ( ! ) Warning: gnupg_import(): import failed in C:\inetpub\wwwroot\index.php on line 18 Actual result: -------------- when use xampp server (php version 5.5.12) Array ( [imported] => 0 [unchanged] => 1 [newuserids] => 0 [newsubkeys] => 0 [secretimported] => 0 [secretunchanged] => 0 [newsignatures] => 0 [skippedkeys] => 0 [fingerprint] => 94E803482C486876AEFB6A3B4EACA1AE3C37066D ) -- Edit bug report at https://bugs.php.net/bug.php?id=71642&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71642&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71642&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71642&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71642&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71642&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71642&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71642&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71642&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71642&r=support Expected behavior: https://bugs.php.net/fix.php?id=71642&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71642&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71642&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71642&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71642&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71642&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71642&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71642&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71642&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71642&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71642&r=mysqlcfg

« previous php.bugs (#199383) next »