Is there a PHP configuration setting that would prevent use of variable before it's set?
<p>I have the following code:</p>

<pre><code>&lt;?php 
  if ($foo) {
    echo $foo;
  }
 ?&gt;
</code></pre>

<p>However, my page is throwing a 500 internal server error (I know this generally means there's an error being logged and the page is aborting prematurely) I do not have access to the error log (as the host is logging to syslog).</p>

<p>I can fix it by doing the following:</p>

<pre><code>&lt;?php 
  if (isset($foo) &amp;&amp; $foo) {
    echo $foo;
  }
 ?&gt;
</code></pre>

<p>but that's not my question. Is there a server setting that would kill a page attempting to use an unset variable? AFAIK, it only logs a 'Notice', which is normally not enough to kill the page.</p>

<p>Here is the first bit of the phpinfo() output (disclaimer: I have no Windows + FastCGI setup experience)
<img src="http://i.stack.imgur.com/MPrJk.png" alt="enter image description here"></p>

<p><strong>Update</strong>
I added a custom error handler and simply output the $errno and $errstr. As expected, it was an E_NOTICE (8) with message 'Undefined variable'. I'm guessing the 500 internal error has something to do with how it's logging to the syslog.</p>
