ignore new "full_path" member in 8.1
[m6w6/ext-apfd] / tests / 002.phpt
index c4e008c5cadae115edac567430112fef23db8c82..50ca2352248d7b3580b47a98822d04dfb537ec1d 100644 (file)
@@ -62,15 +62,24 @@ Content-Type: application/octet-stream
     }
 }
 
+------------------------------6e182425881c
+Content-Disposition: form-data; name="user"
+
+mike
 ------------------------------6e182425881c--
 --FILE--
 <?php
 
+foreach($_FILES as $i => $v) {
+       unset($_FILES[$i]['full_path']); // only in 8.1
+}
 var_dump($_POST, $_FILES);
 
 ?>
 --EXPECTF--
-array(0) {
+array(1) {
+  ["user"]=>
+  string(4) "mike"
 }
 array(2) {
   ["LICENSE"]=>
@@ -80,11 +89,11 @@ array(2) {
     ["type"]=>
     string(24) "application/octet-stream"
     ["tmp_name"]=>
-    string(66) "%sphp%s"
+    string(%d) "%sphp%s"
     ["error"]=>
     int(0)
     ["size"]=>
-    int(1353)
+    int(1340)
   }
   ["composer"]=>
   array(5) {
@@ -93,10 +102,10 @@ array(2) {
     ["type"]=>
     string(24) "application/octet-stream"
     ["tmp_name"]=>
-    string(66) "%sphp%s"
+    string(%d) "%sphp%s"
     ["error"]=>
     int(0)
     ["size"]=>
     int(550)
   }
-}
\ No newline at end of file
+}