title: Undefined variable _GET
body: <p>I got a problem with a php webapplication. It stops working after 10-20 hours for no reason because <code>$_GET</code> is not defined.</p>
  
  <p>The request looks like:</p>
  
  <pre><code>http://host/index.php?id=1
  </code></pre>
  
  <p>the index file has a lil code snippet like:</p>
  
  <pre><code>if (isset($_GET['id']) &amp;&amp; is_numeric($_GET['id'])) {
      $id = intval($_GET['id']);
  } else {
      die('wrong id');
  }
  </code></pre>
  
  <p>A var_dump of <code>$_GET</code> returns <code>NULL</code>. A var_dump of <code>$_SERVER</code> shows the <code>REQUEST_METHOD</code> is GET and the <code>QUERY_STRING</code> is id=1. A <code>var_dump()</code> of <code>$_REQUEST</code> shows id => 1, so it's only <code>$_GET</code> that isn't working.</p>
  
  <p>When that happens it happens for all webapplications on the server and for all users. After restarting the webserver everything is working again for some hours...</p>
  
  <p>System is Windows 2008 R2, Apache 2.4.18 32 Bit/PHP 7.0.4 32 Bit.</p>