title: Some PHP errors/notices not displaying call stack information within Slim Framework
body: <p>I'm using the <a href="http://www.slimframework.com/" rel="nofollow">Slim Framework</a>.</p>
  
  <p>Most PHP errors in my application output normal PHP error messages </p>
  
  <p><strong>Example code with an error that outputs the Call Stack:</strong></p>
  
  <pre><code>echo 'missing semicolon at eol'
  </code></pre>
  
  <p><strong>Error Output:</strong></p>
  
  <pre><code>Parse error: syntax error, unexpected T_IF, expecting ',' or ';' in /data/www/app/routes/companies_routes.php on line 737
  Call Stack:
      0.0002     637144   1. {main}() /data/www/html/index.php:0
  </code></pre>
  
  <p>But other errors ( maybe just notices ) output a limited message that doesn't have a line number, file name, or call stack.  This makes debugging these errors extremely time consuming.</p>
  
  <p><strong>Code with an error that outputs a limited error message</strong></p>
  
  <pre><code>echo $an_undefined_variable;
  </code></pre>
  
  <p><strong>Limited Message</strong></p>
  
  <pre><code>Undefined variable: an_undefined_variable
  </code></pre>
  
  <p>I can't figure out what's going on.  I've never had this problem before.  I suspect it has something to do with the way Slim handles PHP errors.  I've tried wrapping these errors in Try/Catch blocks, but that doesn't solve the problem.</p>