Explorar o código

clearstatecache for upload files

#546
walkor %!s(int64=5) %!d(string=hai) anos
pai
achega
acc3b6bbe3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Protocols/Http/Request.php

+ 2 - 1
Protocols/Http/Request.php

@@ -607,6 +607,7 @@ class Request
     public function __destruct()
     {
         if (isset($this->_data['files'])) {
+            \clearstatecache();
             foreach ($this->_data['files'] as $item) {
                 if (\is_file($item['tmp_name'])) {
                     \unlink($item['tmp_name']);
@@ -614,4 +615,4 @@ class Request
             }
         }
     }
-}
+}