summaryrefslogtreecommitdiffstats
path: root/gnupg-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-04-08 15:23:05 +0200
committerRemi Collet <remi@php.net>2025-04-08 15:23:05 +0200
commit7114203ef3846709f24d74d037b7832feb07edec (patch)
tree8e03346009654fa37605cb7756ef19bf41bd2394 /gnupg-tests.patch
parentd063ddfef598d55060d9835c5de1116aae6dde9a (diff)
update to 1.5.2
re-license spec file to CECILL-2.1 open https://github.com/php-gnupg/php-gnupg/pull/52 file missing in archive open https://github.com/php-gnupg/php-gnupg/pull/53 fix tests with PHP 5
Diffstat (limited to 'gnupg-tests.patch')
-rw-r--r--gnupg-tests.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnupg-tests.patch b/gnupg-tests.patch
new file mode 100644
index 0000000..17a858c
--- /dev/null
+++ b/gnupg-tests.patch
@@ -0,0 +1,22 @@
+From 2a5bc513c6ae065ef43bda71b321bce1b318f03e Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 8 Apr 2025 14:12:09 +0200
+Subject: [PATCH] fix tests with 5.6
+
+---
+ tests/gnupgt.inc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/gnupgt.inc b/tests/gnupgt.inc
+index 2b8aa08..7b06a0a 100644
+--- a/tests/gnupgt.inc
++++ b/tests/gnupgt.inc
+@@ -75,7 +75,7 @@ class gnupgt {
+ self::reset_key();
+
+ $gpg = self::create_instance();
+- $gpg->import($privkey ?? $testkey);
++ $gpg->import(is_null($privkey) ? $testkey : $privkey);
+ }
+
+ /**