title: Difference between error_reporting() and ini_set('error_reporting')?
body: <p>When using <code>error_reporting()</code> or <code>ini_set('error_reporting')</code> in my scripts, are there any functionality differences between the two? Is one method preferred over the other?</p>
  
  <p>For what it's worth, I see many frameworks using <code>error_reporting()</code>, but both options appear to be set during runtime only, then reset back to their default in php.ini after script execution.</p>