Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / http-foundation / Session / Storage / Proxy / AbstractProxy.php
index 405e60b2fdfb347e116eaa6efb0f1cd74df8f159..a7478656d672d4fb6b14467d56026d955a11b7f2 100644 (file)
@@ -25,11 +25,6 @@ abstract class AbstractProxy
      */
     protected $wrapper = false;
 
-    /**
-     * @var bool
-     */
-    protected $active = false;
-
     /**
      * @var string
      */
@@ -72,32 +67,7 @@ abstract class AbstractProxy
      */
     public function isActive()
     {
-        if (\PHP_VERSION_ID >= 50400) {
-            return $this->active = \PHP_SESSION_ACTIVE === session_status();
-        }
-
-        return $this->active;
-    }
-
-    /**
-     * Sets the active flag.
-     *
-     * Has no effect under PHP 5.4+ as status is detected
-     * automatically in isActive()
-     *
-     * @internal
-     *
-     * @param bool $flag
-     *
-     * @throws \LogicException
-     */
-    public function setActive($flag)
-    {
-        if (\PHP_VERSION_ID >= 50400) {
-            throw new \LogicException('This method is disabled in PHP 5.4.0+');
-        }
-
-        $this->active = (bool) $flag;
+        return \PHP_SESSION_ACTIVE === session_status();
     }
 
     /**