Make PHP die if there is a warning
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10520390/stop-script-execution-upon-notice-warning">Stop script execution upon notice/warning</a>  </p>
</blockquote>



<p>Is there a way to make PHP immediately stop script execution if a warning or other error is generated?</p>
