PHP Strict standards: Creating default object from empty value - How to Fix?
<p>All,</p>

<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>It appears that line 2 and 3 are producing the following error:</p>

<pre><code>PHP Strict standards:  Creating default object from empty value
</code></pre>

<p>How can I fix this error?</p>

<p>Thanks</p>
