소스 검색

clearstatecache for upload files

#546
walkor 5 년 전
부모
커밋
acc3b6bbe3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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
             }
         }
     }
-}
+}