summaryrefslogtreecommitdiffstats
path: root/apfd-php81.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-09 11:52:00 +0200
committerRemi Collet <remi@remirepo.net>2021-06-09 11:52:00 +0200
commit468f3a80cc734a632837dbf6d4e35c59adc8c379 (patch)
treeb4991d07df0ac134fa2ca953de651309b0420c4c /apfd-php81.patch
parent5a3e1f714c35bc0a839e99de2a8cfe70b2ee3e15 (diff)
add patch for test suite with 8.1 from
https://github.com/m6w6/ext-apfd/pull/4
Diffstat (limited to 'apfd-php81.patch')
-rw-r--r--apfd-php81.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/apfd-php81.patch b/apfd-php81.patch
new file mode 100644
index 0000000..9b897d4
--- /dev/null
+++ b/apfd-php81.patch
@@ -0,0 +1,38 @@
+From 3b75b75ca2c8fde273b244052bb60f9cb4a56072 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 9 Jun 2021 11:46:36 +0200
+Subject: [PATCH] ignore new "full_path" member in 8.1
+
+---
+ tests/002.phpt | 3 +++
+ tests/003.phpt | 3 +++
+ 2 files changed, 6 insertions(+)
+
+diff --git a/tests/002.phpt b/tests/002.phpt
+index e46df77..50ca235 100644
+--- a/tests/002.phpt
++++ b/tests/002.phpt
+@@ -70,6 +70,9 @@ mike
+ --FILE--
+ <?php
+
++foreach($_FILES as $i => $v) {
++ unset($_FILES[$i]['full_path']); // only in 8.1
++}
+ var_dump($_POST, $_FILES);
+
+ ?>
+diff --git a/tests/003.phpt b/tests/003.phpt
+index 7cfd9ca..94b8989 100644
+--- a/tests/003.phpt
++++ b/tests/003.phpt
+@@ -70,6 +70,9 @@ mike
+ --FILE--
+ <?php
+
++foreach($_FILES as $i => $v) {
++ unset($_FILES[$i]['full_path']); // only in 8.1
++}
+ var_dump($_POST, $_FILES);
+
+ ?>