summaryrefslogtreecommitdiffstats
path: root/apfd-php81.patch
diff options
context:
space:
mode:
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);
+
+ ?>