title: How do I fix the PHP Strict error "Creating default object from empty value"?
body: <p>I have the following PHP5 code:</p>
  
  <pre><code>$request = NULL;
  $request-&gt;{"header"}-&gt;{"sessionid"}        =  $_SESSION['testSession'];
  $request-&gt;{"header"}-&gt;{"type"}             =  "request";
  </code></pre>
  
  <p>Lines 2 and 3 are producing the following error:</p>
  
  <blockquote>
    <p>PHP Strict standards:  Creating default object from empty value</p>
  </blockquote>
  
  <p>How can I fix this error?</p>