title: is it ok to have php.ini display_errors=On production environment
body: <p>On production environment</p>
  
  <p>I have check.php</p>
  
  <pre><code>&lt;?php
  test();
  ?&gt;
  </code></pre>
  
  <p>When doing </p>
  
  <pre><code>curl -v http://xxx.xxx.xxx.xxx/test.php
  </code></pre>
  
  <p>If php.ini on my production environment has</p>
  
  <pre><code>display_errors=Off
  </code></pre>
  
  <p>and I get below header</p>
  
  <pre><code>* HTTP 1.0, assume close after body
  HTTP/1.0 500 Internal Server Error
  Date: Fri, 24 Jul 2015 08:10:41 GMT
  Server: Apache/2.2.15 (CentOS)
  X-Powered-By: PHP/5.3.29
  Content-Length: 0
  Connection: close
  Content-Type: text/html; charset=UTF-8
  
  * Closing connection #0
  </code></pre>
  
  <p>If I change it to</p>
  
  <pre><code>display_errors=On
  </code></pre>
  
  <p>I get the below header</p>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Fri, 24 Jul 2015 08:13:04 GMT
  Server: Apache/2.2.15 (CentOS)
  X-Powered-By: PHP/5.3.29
  Content-Length: 119
  Connection: close
  Content-Type: text/html; charset=UTF-8
  
  &lt;br /&gt;
  &lt;b&gt;Fatal error&lt;/b&gt;:  Call to undefined function test() in &lt;b&gt;/var/www/html/check.php&lt;/b&gt; on line &lt;b&gt;2&lt;/b&gt;&lt;br /&gt;
  * Closing connection #0
  </code></pre>
  
  <p>So, when I have</p>
  
  <pre><code>display_errors=Off
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>500 Internal Server Error
  </code></pre>
  
  <p>So, to avoid 500 Internal Server Error, I need to have display_errors=On</p>
  
  <p>Is it okay to have</p>
  
  <pre><code>display_errors=On
  </code></pre>
  
  <p>on production environment?</p>