ソースを参照

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)]);
             }
         }