summaryrefslogtreecommitdiffstats
path: root/apfd-php81.patch
blob: 9b897d446220f32d89178008ea41ab97265b7f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
 
 ?>