Creating default object from empty value in PHP?
<p>I see this error only after upgrading my PHP environment.  The error points to this line of code:</p>

<p>error:</p>

<pre><code>Creating default object from empty value
</code></pre>

<p>code:</p>

<pre><code>$res-&gt;success = false;
</code></pre>

<p>Do I first need to declare my $res object?</p>
