소스 검색

Update Http.php

walkor 5 년 전
부모
커밋
eb917d10bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -243,7 +243,7 @@ class Http
         if ($_SERVER['REQUEST_METHOD'] === 'GET') {
             static::$_cache[$md5] = $ret;
             if (\count(static::$_cache) > 256) {
-                \array_shift(static::$_cache);
+                unset(static::$_cache[key(static::$_cache)]);
             }
         }