diff --git a/function.php b/function.php index ef7eeb3a..80aa8a22 100644 --- a/function.php +++ b/function.php @@ -326,9 +326,6 @@ if (!function_exists('isUrl')) { if (!empty($query)) $path .= '?' . $query; if (!empty($fragment)) $path .= '#' . $fragment; - - unset($outPut); - return [$scheme == 'https', $host, $port, $path]; } diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index 84a80f35..df524598 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -134,9 +134,9 @@ class Context extends BaseContext return; } if (Coroutine::getCid() === -1) { - unset(static::$_contents[$id]); + static::$_contents[$id] = null; } else { - unset(Coroutine::getContext($coroutineId)[$id]); + Coroutine::getContext($coroutineId)[$id] = null; } }