title: Extract session fails only on php 8
body: <p>I have a site working fine with php 7.4 - no php warnings or errors. But when I switch it to php 8 it fails with this</p>
  <pre><code>    Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given 
  </code></pre>
  <p>The command it fails on is</p>
  <pre><code>    extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS);
  </code></pre>
  <p>If I call is_array($_SESSION) it says it isn't an array. But the session_start function is called before the above and it returns that the session was started.</p>
  <p>Does anyone have an idea as to what the cause of this is? Or what to try?</p>