Explorar o código

Update Http.php

walkor %!s(int64=5) %!d(string=hai) anos
pai
achega
eb917d10bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)]);
             }
         }